* [PATCH 1/2] rfkill: Add missing description for RFKILL_TYPE_GPS
@ 2009-11-18 15:48 Marcel Holtmann
2009-11-18 15:48 ` [PATCH 2/2] rfkill: Add constant for RFKILL_TYPE_FM radio devices Marcel Holtmann
2009-11-18 15:51 ` [PATCH 1/2] rfkill: Add missing description for RFKILL_TYPE_GPS Johannes Berg
0 siblings, 2 replies; 3+ messages in thread
From: Marcel Holtmann @ 2009-11-18 15:48 UTC (permalink / raw)
To: linux-wireless; +Cc: Marcel Holtmann
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
---
include/linux/rfkill.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h
index 3392c59..a75e9e5 100644
--- a/include/linux/rfkill.h
+++ b/include/linux/rfkill.h
@@ -35,6 +35,7 @@
* @RFKILL_TYPE_UWB: switch is on a ultra wideband device.
* @RFKILL_TYPE_WIMAX: switch is on a WiMAX device.
* @RFKILL_TYPE_WWAN: switch is on a wireless WAN device.
+ * @RFKILL_TYPE_GPS: switch is on a GPS device.
* @NUM_RFKILL_TYPES: number of defined rfkill types
*/
enum rfkill_type {
--
1.6.3.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] rfkill: Add constant for RFKILL_TYPE_FM radio devices
2009-11-18 15:48 [PATCH 1/2] rfkill: Add missing description for RFKILL_TYPE_GPS Marcel Holtmann
@ 2009-11-18 15:48 ` Marcel Holtmann
2009-11-18 15:51 ` [PATCH 1/2] rfkill: Add missing description for RFKILL_TYPE_GPS Johannes Berg
1 sibling, 0 replies; 3+ messages in thread
From: Marcel Holtmann @ 2009-11-18 15:48 UTC (permalink / raw)
To: linux-wireless; +Cc: Marcel Holtmann
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
---
include/linux/rfkill.h | 2 ++
net/rfkill/core.c | 4 +++-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h
index a75e9e5..97059d0 100644
--- a/include/linux/rfkill.h
+++ b/include/linux/rfkill.h
@@ -36,6 +36,7 @@
* @RFKILL_TYPE_WIMAX: switch is on a WiMAX device.
* @RFKILL_TYPE_WWAN: switch is on a wireless WAN 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
*/
enum rfkill_type {
@@ -46,6 +47,7 @@ enum rfkill_type {
RFKILL_TYPE_WIMAX,
RFKILL_TYPE_WWAN,
RFKILL_TYPE_GPS,
+ RFKILL_TYPE_FM,
NUM_RFKILL_TYPES,
};
diff --git a/net/rfkill/core.c b/net/rfkill/core.c
index ba2efb9..09f4e16 100644
--- a/net/rfkill/core.c
+++ b/net/rfkill/core.c
@@ -592,11 +592,13 @@ static const char *rfkill_get_type_str(enum rfkill_type type)
return "wwan";
case RFKILL_TYPE_GPS:
return "gps";
+ case RFKILL_TYPE_FM:
+ return "fm";
default:
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,
--
1.6.3.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] rfkill: Add missing description for RFKILL_TYPE_GPS
2009-11-18 15:48 [PATCH 1/2] rfkill: Add missing description for RFKILL_TYPE_GPS Marcel Holtmann
2009-11-18 15:48 ` [PATCH 2/2] rfkill: Add constant for RFKILL_TYPE_FM radio devices Marcel Holtmann
@ 2009-11-18 15:51 ` Johannes Berg
1 sibling, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2009-11-18 15:51 UTC (permalink / raw)
To: Marcel Holtmann; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 943 bytes --]
Both look good, thanks for short-circuiting the repost cycle :)
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Not that I fully understand the need for either GPS or FM rfkill, but
hey, whatever.
johannes
On Wed, 2009-11-18 at 16:48 +0100, Marcel Holtmann wrote:
> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
> ---
> include/linux/rfkill.h | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h
> index 3392c59..a75e9e5 100644
> --- a/include/linux/rfkill.h
> +++ b/include/linux/rfkill.h
> @@ -35,6 +35,7 @@
> * @RFKILL_TYPE_UWB: switch is on a ultra wideband device.
> * @RFKILL_TYPE_WIMAX: switch is on a WiMAX device.
> * @RFKILL_TYPE_WWAN: switch is on a wireless WAN device.
> + * @RFKILL_TYPE_GPS: switch is on a GPS device.
> * @NUM_RFKILL_TYPES: number of defined rfkill types
> */
> enum rfkill_type {
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-18 15:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-18 15:48 [PATCH 1/2] rfkill: Add missing description for RFKILL_TYPE_GPS Marcel Holtmann
2009-11-18 15:48 ` [PATCH 2/2] rfkill: Add constant for RFKILL_TYPE_FM radio devices Marcel Holtmann
2009-11-18 15:51 ` [PATCH 1/2] rfkill: Add missing description for RFKILL_TYPE_GPS Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).