aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@gmx.de>2007-05-10 05:44:11 -0400
committerRichard Purdie <rpurdie@rpsys.net>2007-07-15 20:15:50 -0400
commit66242f7ec531953fbc2f4040c5ffe1f1ffe6c5c9 (patch)
treebd0d05edc2b52bc922d19d46cd3613a0fc95d0c2 /drivers/leds
parent00852279af5ad26956bc7f4d0e86fdb40192e542 (diff)
leds: Use menuconfig objects II - LED
Change Kconfig objects from "menu, config" into "menuconfig" so that the user can disable the whole feature without having to enter the menu first. Signed-off-by: Jan Engelhardt <jengelh@gmx.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/Kconfig14
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
index 9ce3ca109c2f..4468cb3a8d24 100644
--- a/drivers/leds/Kconfig
+++ b/drivers/leds/Kconfig
@@ -1,9 +1,6 @@
1 1menuconfig NEW_LEDS
2menu "LED devices"
3 depends on HAS_IOMEM
4
5config NEW_LEDS
6 bool "LED Support" 2 bool "LED Support"
3 depends on HAS_IOMEM
7 help 4 help
8 Say Y to enable Linux LED support. This allows control of supported 5 Say Y to enable Linux LED support. This allows control of supported
9 LEDs from both userspace and optionally, by kernel events (triggers). 6 LEDs from both userspace and optionally, by kernel events (triggers).
@@ -11,9 +8,10 @@ config NEW_LEDS
11 This is not related to standard keyboard LEDs which are controlled 8 This is not related to standard keyboard LEDs which are controlled
12 via the input system. 9 via the input system.
13 10
11if NEW_LEDS
12
14config LEDS_CLASS 13config LEDS_CLASS
15 tristate "LED Class Support" 14 tristate "LED Class Support"
16 depends on NEW_LEDS
17 help 15 help
18 This option enables the led sysfs class in /sys/class/leds. You'll 16 This option enables the led sysfs class in /sys/class/leds. You'll
19 need this to do anything useful with LEDs. If unsure, say N. 17 need this to do anything useful with LEDs. If unsure, say N.
@@ -107,7 +105,6 @@ comment "LED Triggers"
107 105
108config LEDS_TRIGGERS 106config LEDS_TRIGGERS
109 bool "LED Trigger support" 107 bool "LED Trigger support"
110 depends on NEW_LEDS
111 help 108 help
112 This option enables trigger support for the leds class. 109 This option enables trigger support for the leds class.
113 These triggers allow kernel events to drive the LEDs and can 110 These triggers allow kernel events to drive the LEDs and can
@@ -136,5 +133,4 @@ config LEDS_TRIGGER_HEARTBEAT
136 load average. 133 load average.
137 If unsure, say Y. 134 If unsure, say Y.
138 135
139endmenu 136endif # NEW_LEDS
140