|
@@ -579,6 +579,8 @@ static ssize_t rfkill_name_show(struct device *dev,
|
|
|
|
|
|
static const char *rfkill_get_type_str(enum rfkill_type type)
|
|
static const char *rfkill_get_type_str(enum rfkill_type type)
|
|
{
|
|
{
|
|
|
|
+ BUILD_BUG_ON(NUM_RFKILL_TYPES != RFKILL_TYPE_FM + 1);
|
|
|
|
+
|
|
switch (type) {
|
|
switch (type) {
|
|
case RFKILL_TYPE_WLAN:
|
|
case RFKILL_TYPE_WLAN:
|
|
return "wlan";
|
|
return "wlan";
|
|
@@ -597,8 +599,6 @@ static const char *rfkill_get_type_str(enum rfkill_type type)
|
|
default:
|
|
default:
|
|
BUG();
|
|
BUG();
|
|
}
|
|
}
|
|
-
|
|
|
|
- BUILD_BUG_ON(NUM_RFKILL_TYPES != RFKILL_TYPE_FM + 1);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
static ssize_t rfkill_type_show(struct device *dev,
|
|
static ssize_t rfkill_type_show(struct device *dev,
|