diff options
Diffstat (limited to 'drivers/leds/Kconfig')
-rw-r--r-- | drivers/leds/Kconfig | 22 |
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 | 1 | menuconfig NEW_LEDS | |
2 | menu "LED devices" | ||
3 | depends on HAS_IOMEM | ||
4 | |||
5 | config 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 | ||
11 | if NEW_LEDS | ||
12 | |||
14 | config LEDS_CLASS | 13 | config 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 | ||
96 | config 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 | |||
98 | comment "LED Triggers" | 104 | comment "LED Triggers" |
99 | 105 | ||
100 | config LEDS_TRIGGERS | 106 | config 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 | ||
131 | endmenu | 136 | endif # NEW_LEDS |
132 | |||