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