[PATCH 14/36] Use menuconfig objects II - LED

From: Jan Engelhardt
Date: Mon Apr 30 2007 - 07:37:57 EST



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@xxxxxx>

---
drivers/leds/Kconfig | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/leds/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/leds/Kconfig
@@ -1,7 +1,5 @@

-menu "LED devices"
-
-config NEW_LEDS
+menuconfig NEW_LEDS
bool "LED Support"
help
Say Y to enable Linux LED support. This allows control of supported
@@ -10,9 +8,10 @@ config NEW_LEDS
This is not related to standard keyboard LEDs which are controlled
via the input system.

+if NEW_LEDS
+
config LEDS_CLASS
tristate "LED Class Support"
- depends on NEW_LEDS
help
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.
@@ -106,7 +105,6 @@ comment "LED Triggers"

config LEDS_TRIGGERS
bool "LED Trigger support"
- depends on NEW_LEDS
help
This option enables trigger support for the leds class.
These triggers allow kernel events to drive the LEDs and can
@@ -135,5 +133,4 @@ config LEDS_TRIGGER_HEARTBEAT
load average.
If unsure, say Y.

-endmenu
-
+endif # NEW_LEDS
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/