lkml.org 
[lkml]   [2007]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 14/36] 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>

    ---
    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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2007-04-30 13:41    [W:4.321 / U:0.200 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site