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>

authored by Jan Engelhardt and committed by Richard Purdie 66242f7e 00852279

+5 -9
+5 -9
drivers/leds/Kconfig
··· 1 - 2 - menu "LED devices" 3 - depends on HAS_IOMEM 4 - 5 - config NEW_LEDS 6 bool "LED Support" 7 help 8 Say Y to enable Linux LED support. This allows control of supported 9 LEDs from both userspace and optionally, by kernel events (triggers). ··· 8 This is not related to standard keyboard LEDs which are controlled 9 via the input system. 10 11 config LEDS_CLASS 12 tristate "LED Class Support" 13 - depends on NEW_LEDS 14 help 15 This option enables the led sysfs class in /sys/class/leds. You'll 16 need this to do anything useful with LEDs. If unsure, say N. ··· 105 106 config LEDS_TRIGGERS 107 bool "LED Trigger support" 108 - depends on NEW_LEDS 109 help 110 This option enables trigger support for the leds class. 111 These triggers allow kernel events to drive the LEDs and can ··· 133 load average. 134 If unsure, say Y. 135 136 - endmenu 137 -
··· 1 + menuconfig NEW_LEDS 2 bool "LED Support" 3 + depends on HAS_IOMEM 4 help 5 Say Y to enable Linux LED support. This allows control of supported 6 LEDs from both userspace and optionally, by kernel events (triggers). ··· 11 This is not related to standard keyboard LEDs which are controlled 12 via the input system. 13 14 + if NEW_LEDS 15 + 16 config LEDS_CLASS 17 tristate "LED Class Support" 18 help 19 This option enables the led sysfs class in /sys/class/leds. You'll 20 need this to do anything useful with LEDs. If unsure, say N. ··· 107 108 config LEDS_TRIGGERS 109 bool "LED Trigger support" 110 help 111 This option enables trigger support for the leds class. 112 These triggers allow kernel events to drive the LEDs and can ··· 136 load average. 137 If unsure, say Y. 138 139 + endif # NEW_LEDS