linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] Adding radio type FM
  2009-11-14 18:05         ` Marcel Holtmann
@ 2009-11-16  2:36           ` Janakiram Sistla
  2009-11-16  2:43             ` Marcel Holtmann
  0 siblings, 1 reply; 6+ messages in thread
From: Janakiram Sistla @ 2009-11-16  2:36 UTC (permalink / raw)
  To: majordomo; +Cc: linux-wireless, linux-kernel, Marcel Holtmann

Adding changes  RFKILL type FM  and for RFKILL for FM  in core

>From 4bf0ae6c90de9a766914abeb5ab5e5428089b648 Mon Sep 17 00:00:00 2001
From: Janakiram Sistla <janakiram.sistla@gmail.com>
Date: Mon, 16 Nov 2009 07:58:09 +0530
Subject: [PATCH 1/1] Adding radio type FM

Adding radio type FM in RFKILL_TYPE_.FM belongs to
same class of with both TX/RX capability.

Signed-off-by: Janakiram Sistla <janakiram.sistla@gmail.com>
---
 include/linux/rfkill.h |    1 +
 net/rfkill/core.c      |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h
index 3392c59..03f5598 100644
--- a/include/linux/rfkill.h
+++ b/include/linux/rfkill.h
@@ -45,6 +45,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..61b716e 100644
--- a/net/rfkill/core.c
+++ b/net/rfkill/core.c
@@ -590,6 +590,8 @@ static const char *rfkill_get_type_str(enum
rfkill_type type)
 		return "wimax";
 	case RFKILL_TYPE_WWAN:
 		return "wwan";
+	case RFKILL_TYPE_FM:
+		return "fm";
 	case RFKILL_TYPE_GPS:
 		return "gps";
 	default:
-- 
1.5.4.3

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

* Re: [PATCH 1/1] Adding radio type FM
  2009-11-16  2:36           ` [PATCH 1/1] " Janakiram Sistla
@ 2009-11-16  2:43             ` Marcel Holtmann
  2009-11-16  4:25               ` Janakiram Sistla
  0 siblings, 1 reply; 6+ messages in thread
From: Marcel Holtmann @ 2009-11-16  2:43 UTC (permalink / raw)
  To: Janakiram Sistla; +Cc: linux-wireless, linux-kernel

Hi Janakiram,

so first of all, please stop sending emails to majordomo. That is not a
real person.

> Adding changes  RFKILL type FM  and for RFKILL for FM  in core
> 
> From 4bf0ae6c90de9a766914abeb5ab5e5428089b648 Mon Sep 17 00:00:00 2001
> From: Janakiram Sistla <janakiram.sistla@gmail.com>
> Date: Mon, 16 Nov 2009 07:58:09 +0530
> Subject: [PATCH 1/1] Adding radio type FM
> 
> Adding radio type FM in RFKILL_TYPE_.FM belongs to
> same class of with both TX/RX capability.
> 
> Signed-off-by: Janakiram Sistla <janakiram.sistla@gmail.com>

the patch itself is fine, but can we get at least one with a proper
commit message. And if you mailer is broken, then either fix it or use
git send-email.

Regards

Marcel



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

* Re: [PATCH 1/1] Adding radio type FM
  2009-11-16  2:43             ` Marcel Holtmann
@ 2009-11-16  4:25               ` Janakiram Sistla
  0 siblings, 0 replies; 6+ messages in thread
From: Janakiram Sistla @ 2009-11-16  4:25 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: linux-wireless, linux-kernel

Hi Marcel,

I am sorry about this.There is a problem with my git send-email.so i
had to use the mailer.I will surely take complete precaution that it
will not repeat further.

Regards,
Ram.

On 11/16/09, Marcel Holtmann <marcel@holtmann.org> wrote:
> Hi Janakiram,
>
> so first of all, please stop sending emails to majordomo. That is not a
> real person.
>
> > Adding changes  RFKILL type FM  and for RFKILL for FM  in core
> >
> > From 4bf0ae6c90de9a766914abeb5ab5e5428089b648 Mon Sep 17 00:00:00 2001
> > From: Janakiram Sistla <janakiram.sistla@gmail.com>
> > Date: Mon, 16 Nov 2009 07:58:09 +0530
> > Subject: [PATCH 1/1] Adding radio type FM
> >
> > Adding radio type FM in RFKILL_TYPE_.FM belongs to
> > same class of with both TX/RX capability.
> >
> > Signed-off-by: Janakiram Sistla <janakiram.sistla@gmail.com>
>
> the patch itself is fine, but can we get at least one with a proper
> commit message. And if you mailer is broken, then either fix it or use
> git send-email.
>
> Regards
>
> Marcel
>
>
>

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

* [PATCH 1/1] Adding radio type FM
@ 2009-11-17 17:48 Janakiram Sistla
  2009-11-17 18:31 ` John W. Linville
  0 siblings, 1 reply; 6+ messages in thread
From: Janakiram Sistla @ 2009-11-17 17:48 UTC (permalink / raw)
  To: marcel; +Cc: linux-wireless, Janakiram Sistla

From: Janakiram Sistla <janakiram.sistla@gmail.com>

Adding radio type FM in RFKILL_TYPE_.FM belongs to
same class of with both TX/RX capability.

Signed-off-by: Janakiram Sistla <janakiram.sistla@gmail.com>
---
 include/linux/rfkill.h |    1 +
 net/rfkill/core.c      |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h
index 3392c59..03f5598 100644
--- a/include/linux/rfkill.h
+++ b/include/linux/rfkill.h
@@ -45,6 +45,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..61b716e 100644
--- a/net/rfkill/core.c
+++ b/net/rfkill/core.c
@@ -590,6 +590,8 @@ static const char *rfkill_get_type_str(enum rfkill_type type)
 		return "wimax";
 	case RFKILL_TYPE_WWAN:
 		return "wwan";
+	case RFKILL_TYPE_FM:
+		return "fm";
 	case RFKILL_TYPE_GPS:
 		return "gps";
 	default:
-- 
1.5.4.3


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

* Re: [PATCH 1/1] Adding radio type FM
  2009-11-17 17:48 [PATCH 1/1] Adding radio type FM Janakiram Sistla
@ 2009-11-17 18:31 ` John W. Linville
  2009-11-17 18:47   ` John W. Linville
  0 siblings, 1 reply; 6+ messages in thread
From: John W. Linville @ 2009-11-17 18:31 UTC (permalink / raw)
  To: Janakiram Sistla; +Cc: marcel, linux-wireless

On Tue, Nov 17, 2009 at 11:18:33PM +0530, Janakiram Sistla wrote:
> From: Janakiram Sistla <janakiram.sistla@gmail.com>
> 
> Adding radio type FM in RFKILL_TYPE_.FM belongs to
> same class of with both TX/RX capability.
> 
> Signed-off-by: Janakiram Sistla <janakiram.sistla@gmail.com>
> ---
>  include/linux/rfkill.h |    1 +
>  net/rfkill/core.c      |    2 ++
>  2 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/include/linux/rfkill.h b/include/linux/rfkill.h
> index 3392c59..03f5598 100644
> --- a/include/linux/rfkill.h
> +++ b/include/linux/rfkill.h
> @@ -45,6 +45,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..61b716e 100644
> --- a/net/rfkill/core.c
> +++ b/net/rfkill/core.c
> @@ -590,6 +590,8 @@ static const char *rfkill_get_type_str(enum rfkill_type type)
>  		return "wimax";
>  	case RFKILL_TYPE_WWAN:
>  		return "wwan";
> +	case RFKILL_TYPE_FM:
> +		return "fm";
>  	case RFKILL_TYPE_GPS:
>  		return "gps";
>  	default:

My personal taste would dictate that you add the case statement
in the same place that you added the enum.  Depending on which
order you choose, you may need to change the BUILD_BUG_ON on line
601 of net/rfkill/core.c.  (Not sure how you managed to build w/
this patch...)

Also, when you add the enum you need to add the corresponding kerneldoc
(i.e. an @RFKILL_TYPE_FM comment) just above it.

Finally, please add "rfkill: " to the beginning of the subject line
when you resubmit your patch.

Thanks,

John
-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

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

* Re: [PATCH 1/1] Adding radio type FM
  2009-11-17 18:31 ` John W. Linville
@ 2009-11-17 18:47   ` John W. Linville
  0 siblings, 0 replies; 6+ messages in thread
From: John W. Linville @ 2009-11-17 18:47 UTC (permalink / raw)
  To: Janakiram Sistla; +Cc: marcel, linux-wireless

On Tue, Nov 17, 2009 at 01:31:50PM -0500, John W. Linville wrote:

> My personal taste would dictate that you add the case statement
> in the same place that you added the enum.  Depending on which

s/place/order/

John
-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

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

end of thread, other threads:[~2009-11-17 19:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-17 17:48 [PATCH 1/1] Adding radio type FM Janakiram Sistla
2009-11-17 18:31 ` John W. Linville
2009-11-17 18:47   ` John W. Linville
  -- strict thread matches above, loose matches on Subject: below --
2009-11-13  3:09 [patch 0/1] " Janakiram Sistla
2009-11-13  3:22 ` Marcel Holtmann
2009-11-14 13:19   ` Janakiram Sistla
2009-11-14 16:34     ` Marcel Holtmann
2009-11-14 17:37       ` Janakiram Sistla
2009-11-14 18:05         ` Marcel Holtmann
2009-11-16  2:36           ` [PATCH 1/1] " Janakiram Sistla
2009-11-16  2:43             ` Marcel Holtmann
2009-11-16  4:25               ` Janakiram Sistla

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).