Skip to content

Commit

Permalink
leds: fix the incorrect display in menuconfig
Browse files Browse the repository at this point in the history
Seems when a config option does not have a dependency of the menuconfig,
it messes the display of the rest configs, even if it's a hidden one.

Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Eric Miao authored and Linus Torvalds committed Jun 16, 2011
1 parent b0320c7 commit 45d16f0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/leds/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ menuconfig NEW_LEDS
This is not related to standard keyboard LEDs which are controlled
via the input system.

if NEW_LEDS

config LEDS_CLASS
bool "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.

if NEW_LEDS

comment "LED drivers"

config LEDS_88PM860X
Expand Down

0 comments on commit 45d16f0

Please sign in to comment.