linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] RFKILL: allow one to specify led trigger name
@ 2008-07-22 10:17 Dmitry Baryshkov
  2008-07-22 11:20 ` Henrique de Moraes Holschuh
  2008-07-22 17:11 ` Ivo van Doorn
  0 siblings, 2 replies; 3+ messages in thread
From: Dmitry Baryshkov @ 2008-07-22 10:17 UTC (permalink / raw)
  To: linux-wireless; +Cc: Henrique de Moraes Holschuh, Ivo van Doorn

Allow the rfkill driver to specify led trigger name.
By default it still defaults to the name of rfkill switch.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Ivo van Doorn <IvDoorn@gmail.com>
---
 net/rfkill/rfkill.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/net/rfkill/rfkill.c b/net/rfkill/rfkill.c
index 4e10a95..b247677 100644
--- a/net/rfkill/rfkill.c
+++ b/net/rfkill/rfkill.c
@@ -355,7 +355,8 @@ static void rfkill_led_trigger_register(struct rfkill *rfkill)
 #ifdef CONFIG_RFKILL_LEDS
 	int error;
 
-	rfkill->led_trigger.name = rfkill->dev.bus_id;
+	if (!rfkill->led_trigger.name)
+		rfkill->led_trigger.name = rfkill->dev.bus_id;
 	error = led_trigger_register(&rfkill->led_trigger);
 	if (error)
 		rfkill->led_trigger.name = NULL;
-- 
1.5.6.2


-- 
With best wishes
Dmitry


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

* Re: [PATCH 1/2] RFKILL: allow one to specify led trigger name
  2008-07-22 10:17 [PATCH 1/2] RFKILL: allow one to specify led trigger name Dmitry Baryshkov
@ 2008-07-22 11:20 ` Henrique de Moraes Holschuh
  2008-07-22 17:11 ` Ivo van Doorn
  1 sibling, 0 replies; 3+ messages in thread
From: Henrique de Moraes Holschuh @ 2008-07-22 11:20 UTC (permalink / raw)
  To: Dmitry Baryshkov; +Cc: linux-wireless, Ivo van Doorn

On Tue, 22 Jul 2008, Dmitry Baryshkov wrote:
> Allow the rfkill driver to specify led trigger name.
> By default it still defaults to the name of rfkill switch.
> 
> Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
> Cc: Ivo van Doorn <IvDoorn@gmail.com>
> ---
>  net/rfkill/rfkill.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/net/rfkill/rfkill.c b/net/rfkill/rfkill.c
> index 4e10a95..b247677 100644
> --- a/net/rfkill/rfkill.c
> +++ b/net/rfkill/rfkill.c
> @@ -355,7 +355,8 @@ static void rfkill_led_trigger_register(struct rfkill *rfkill)
>  #ifdef CONFIG_RFKILL_LEDS
>  	int error;
>  
> -	rfkill->led_trigger.name = rfkill->dev.bus_id;
> +	if (!rfkill->led_trigger.name)
> +		rfkill->led_trigger.name = rfkill->dev.bus_id;
>  	error = led_trigger_register(&rfkill->led_trigger);
>  	if (error)
>  		rfkill->led_trigger.name = NULL;
> -- 
> 1.5.6.2
> 
> 

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

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

* Re: [PATCH 1/2] RFKILL: allow one to specify led trigger name
  2008-07-22 10:17 [PATCH 1/2] RFKILL: allow one to specify led trigger name Dmitry Baryshkov
  2008-07-22 11:20 ` Henrique de Moraes Holschuh
@ 2008-07-22 17:11 ` Ivo van Doorn
  1 sibling, 0 replies; 3+ messages in thread
From: Ivo van Doorn @ 2008-07-22 17:11 UTC (permalink / raw)
  To: Dmitry Baryshkov; +Cc: linux-wireless, Henrique de Moraes Holschuh

On Tuesday 22 July 2008, Dmitry Baryshkov wrote:
> Allow the rfkill driver to specify led trigger name.
> By default it still defaults to the name of rfkill switch.
> 
> Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
> Cc: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
> Cc: Ivo van Doorn <IvDoorn@gmail.com>

Acked-by: Ivo van Doorn <IvDoorn@gmail.com>

> ---
>  net/rfkill/rfkill.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/net/rfkill/rfkill.c b/net/rfkill/rfkill.c
> index 4e10a95..b247677 100644
> --- a/net/rfkill/rfkill.c
> +++ b/net/rfkill/rfkill.c
> @@ -355,7 +355,8 @@ static void rfkill_led_trigger_register(struct rfkill *rfkill)
>  #ifdef CONFIG_RFKILL_LEDS
>  	int error;
>  
> -	rfkill->led_trigger.name = rfkill->dev.bus_id;
> +	if (!rfkill->led_trigger.name)
> +		rfkill->led_trigger.name = rfkill->dev.bus_id;
>  	error = led_trigger_register(&rfkill->led_trigger);
>  	if (error)
>  		rfkill->led_trigger.name = NULL;
> -- 
> 1.5.6.2
> 
> 



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

end of thread, other threads:[~2008-07-22 16:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-22 10:17 [PATCH 1/2] RFKILL: allow one to specify led trigger name Dmitry Baryshkov
2008-07-22 11:20 ` Henrique de Moraes Holschuh
2008-07-22 17:11 ` Ivo van Doorn

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