aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/leds/Kconfig')
-rw-r--r--drivers/leds/Kconfig22
1 files changed, 13 insertions, 9 deletions
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
index 87d2046f866c..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.
@@ -95,11 +93,18 @@ config LEDS_COBALT
95 help 93 help
96 This option enables support for the front LED on Cobalt Server 94 This option enables support for the front LED on Cobalt Server
97 95
96config LEDS_GPIO
97 tristate "LED Support for GPIO connected LEDs"
98 depends on LEDS_CLASS && GENERIC_GPIO
99 help
100 This option enables support for the LEDs connected to GPIO
101 outputs. To be useful the particular board must have LEDs
102 and they must be connected to the GPIO lines.
103
98comment "LED Triggers" 104comment "LED Triggers"
99 105
100config LEDS_TRIGGERS 106config LEDS_TRIGGERS
101 bool "LED Trigger support" 107 bool "LED Trigger support"
102 depends on NEW_LEDS
103 help 108 help
104 This option enables trigger support for the leds class. 109 This option enables trigger support for the leds class.
105 These triggers allow kernel events to drive the LEDs and can 110 These triggers allow kernel events to drive the LEDs and can
@@ -128,5 +133,4 @@ config LEDS_TRIGGER_HEARTBEAT
128 load average. 133 load average.
129 If unsure, say Y. 134 If unsure, say Y.
130 135
131endmenu 136endif # NEW_LEDS
132