diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2008-07-22 06:17:37 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-01 15:31:33 -0400 |
commit | 7c4f4578fc85d42d149f86b47f76c28626a20d92 (patch) | |
tree | 266b617211d19f31d383b7b11a6d3dfe160676d1 /net/rfkill | |
parent | 6e28fbef0f330d7c1cade345eeae003d4e5d6070 (diff) |
RFKILL: allow one to specify led trigger name
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>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/rfkill')
-rw-r--r-- | 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 c6f2f388cb72..5c24f3647189 100644 --- a/net/rfkill/rfkill.c +++ b/net/rfkill/rfkill.c | |||
@@ -589,7 +589,8 @@ static void rfkill_led_trigger_register(struct rfkill *rfkill) | |||
589 | #ifdef CONFIG_RFKILL_LEDS | 589 | #ifdef CONFIG_RFKILL_LEDS |
590 | int error; | 590 | int error; |
591 | 591 | ||
592 | rfkill->led_trigger.name = rfkill->dev.bus_id; | 592 | if (!rfkill->led_trigger.name) |
593 | rfkill->led_trigger.name = rfkill->dev.bus_id; | ||
593 | error = led_trigger_register(&rfkill->led_trigger); | 594 | error = led_trigger_register(&rfkill->led_trigger); |
594 | if (error) | 595 | if (error) |
595 | rfkill->led_trigger.name = NULL; | 596 | rfkill->led_trigger.name = NULL; |