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>
This commit is contained in:
parent
00852279af
commit
66242f7ec5
@ -1,9 +1,6 @@
|
|||||||
|
menuconfig NEW_LEDS
|
||||||
menu "LED devices"
|
|
||||||
depends on HAS_IOMEM
|
|
||||||
|
|
||||||
config NEW_LEDS
|
|
||||||
bool "LED Support"
|
bool "LED Support"
|
||||||
|
depends on HAS_IOMEM
|
||||||
help
|
help
|
||||||
Say Y to enable Linux LED support. This allows control of supported
|
Say Y to enable Linux LED support. This allows control of supported
|
||||||
LEDs from both userspace and optionally, by kernel events (triggers).
|
LEDs from both userspace and optionally, by kernel events (triggers).
|
||||||
@ -11,9 +8,10 @@ config NEW_LEDS
|
|||||||
This is not related to standard keyboard LEDs which are controlled
|
This is not related to standard keyboard LEDs which are controlled
|
||||||
via the input system.
|
via the input system.
|
||||||
|
|
||||||
|
if NEW_LEDS
|
||||||
|
|
||||||
config LEDS_CLASS
|
config LEDS_CLASS
|
||||||
tristate "LED Class Support"
|
tristate "LED Class Support"
|
||||||
depends on NEW_LEDS
|
|
||||||
help
|
help
|
||||||
This option enables the led sysfs class in /sys/class/leds. You'll
|
This option enables the led sysfs class in /sys/class/leds. You'll
|
||||||
need this to do anything useful with LEDs. If unsure, say N.
|
need this to do anything useful with LEDs. If unsure, say N.
|
||||||
@ -107,7 +105,6 @@ comment "LED Triggers"
|
|||||||
|
|
||||||
config LEDS_TRIGGERS
|
config LEDS_TRIGGERS
|
||||||
bool "LED Trigger support"
|
bool "LED Trigger support"
|
||||||
depends on NEW_LEDS
|
|
||||||
help
|
help
|
||||||
This option enables trigger support for the leds class.
|
This option enables trigger support for the leds class.
|
||||||
These triggers allow kernel events to drive the LEDs and can
|
These triggers allow kernel events to drive the LEDs and can
|
||||||
@ -136,5 +133,4 @@ config LEDS_TRIGGER_HEARTBEAT
|
|||||||
load average.
|
load average.
|
||||||
If unsure, say Y.
|
If unsure, say Y.
|
||||||
|
|
||||||
endmenu
|
endif # NEW_LEDS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user