mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
rfkill: Add constant for RFKILL_TYPE_FM radio devices
Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Janakiram Sistla <janakiram.sistla@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
0878c3504f
commit
875405a779
2 changed files with 5 additions and 1 deletions
|
@ -36,6 +36,7 @@
|
||||||
* @RFKILL_TYPE_WIMAX: switch is on a WiMAX device.
|
* @RFKILL_TYPE_WIMAX: switch is on a WiMAX device.
|
||||||
* @RFKILL_TYPE_WWAN: switch is on a wireless WAN device.
|
* @RFKILL_TYPE_WWAN: switch is on a wireless WAN device.
|
||||||
* @RFKILL_TYPE_GPS: switch is on a GPS device.
|
* @RFKILL_TYPE_GPS: switch is on a GPS device.
|
||||||
|
* @RFKILL_TYPE_FM: switch is on a FM radio device.
|
||||||
* @NUM_RFKILL_TYPES: number of defined rfkill types
|
* @NUM_RFKILL_TYPES: number of defined rfkill types
|
||||||
*/
|
*/
|
||||||
enum rfkill_type {
|
enum rfkill_type {
|
||||||
|
@ -46,6 +47,7 @@ enum rfkill_type {
|
||||||
RFKILL_TYPE_WIMAX,
|
RFKILL_TYPE_WIMAX,
|
||||||
RFKILL_TYPE_WWAN,
|
RFKILL_TYPE_WWAN,
|
||||||
RFKILL_TYPE_GPS,
|
RFKILL_TYPE_GPS,
|
||||||
|
RFKILL_TYPE_FM,
|
||||||
NUM_RFKILL_TYPES,
|
NUM_RFKILL_TYPES,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -592,11 +592,13 @@ static const char *rfkill_get_type_str(enum rfkill_type type)
|
||||||
return "wwan";
|
return "wwan";
|
||||||
case RFKILL_TYPE_GPS:
|
case RFKILL_TYPE_GPS:
|
||||||
return "gps";
|
return "gps";
|
||||||
|
case RFKILL_TYPE_FM:
|
||||||
|
return "fm";
|
||||||
default:
|
default:
|
||||||
BUG();
|
BUG();
|
||||||
}
|
}
|
||||||
|
|
||||||
BUILD_BUG_ON(NUM_RFKILL_TYPES != RFKILL_TYPE_GPS + 1);
|
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,
|
||||||
|
|
Loading…
Reference in a new issue