public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] rfkill: add the GPS radio type
@ 2009-08-01 23:36 Tomas Winkler
  2009-08-02  0:04 ` Marcel Holtmann
  0 siblings, 1 reply; 11+ messages in thread
From: Tomas Winkler @ 2009-08-01 23:36 UTC (permalink / raw)
  To: linville, johannes; +Cc: linux-wireless, Tomas Winkler

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>
---
 include/linux/rfkill.h |    1 +
 net/rfkill/core.c      |    4 +++-
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h
index 1020290..21ca51b 100644
--- a/include/linux/rfkill.h
+++ b/include/linux/rfkill.h
@@ -47,6 +47,7 @@ enum rfkill_type {
 	RFKILL_TYPE_UWB,
 	RFKILL_TYPE_WIMAX,
 	RFKILL_TYPE_WWAN,
+	RFKILL_TYPE_GPS,
 	NUM_RFKILL_TYPES,
 };
 
diff --git a/net/rfkill/core.c b/net/rfkill/core.c
index 044de1c..dbeaf29 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,
-- 
1.6.0.6

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-08-03 17:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-01 23:36 [PATCH 1/1] rfkill: add the GPS radio type Tomas Winkler
2009-08-02  0:04 ` Marcel Holtmann
2009-08-02  5:49   ` Tomas Winkler
2009-08-02  7:45     ` Johannes Berg
2009-08-02 10:43       ` Tomas Winkler
2009-08-02 16:18         ` Marcel Holtmann
2009-08-02 16:28       ` Marcel Holtmann
2009-08-03 14:23         ` Tomas Winkler
2009-08-03 16:24           ` Marcel Holtmann
2009-08-03 16:53             ` Tomas Winkler
2009-08-03 17:02               ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox