summaryrefslogtreecommitdiffstats
path: root/net/rfkill
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2009-08-02 01:36:49 +0200
committerJohn W. Linville <linville@tuxdriver.com>2009-08-04 22:44:23 +0200
commit3ad201496badddd8e1cda87ee6d29e8b3b8e1279 (patch)
tree2dae92ff7b85a46939ecb7d9effd2d5f36d5e8bb /net/rfkill
parentdrivers/net/wireless: Use DIV_ROUND_CLOSEST (diff)
downloadlinux-3ad201496badddd8e1cda87ee6d29e8b3b8e1279.tar.xz
linux-3ad201496badddd8e1cda87ee6d29e8b3b8e1279.zip
rfkill: add the GPS radio type
Althoug GPS is a technology w/o transmitting radio and thus not a primary candidate for rfkill switch, rfkill gives unified interface point for devices with wireless technology. The input key is not supplied as it is too be deprecated. Cc: johannes@sipsolutions.net Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/rfkill')
-rw-r--r--net/rfkill/core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/rfkill/core.c b/net/rfkill/core.c
index 044de1c6af3d..dbeaf2983822 100644
--- a/net/rfkill/core.c
+++ b/net/rfkill/core.c
@@ -589,11 +589,13 @@ static const char *rfkill_get_type_str(enum rfkill_type type)
return "wimax";
case RFKILL_TYPE_WWAN:
return "wwan";
+ case RFKILL_TYPE_GPS:
+ return "gps";
default:
BUG();
}
- BUILD_BUG_ON(NUM_RFKILL_TYPES != RFKILL_TYPE_WWAN + 1);
+ BUILD_BUG_ON(NUM_RFKILL_TYPES != RFKILL_TYPE_GPS + 1);
}
static ssize_t rfkill_type_show(struct device *dev,