Kconfig: fix problem in HID menu

From: Krzysztof Helt
Date: Sun May 17 2009 - 11:50:48 EST


From: Krzysztof Helt <krzysztof.h1@xxxxx>

Following syntax does not work properly if there is an options FOO2 depending on the FOO:

config FOO
tristate "Foo" if EMBEDDED
depends on FUD
default !EMBEDDED

config FOO2
bool "Foo2"
depends on FOO

If the EMBEDDED is not selected the FOO option is selected
and it cannot be unselected.

The change of the FOO definition:

config FOO
tristate "Foo"
depends on EMBEDDED && FUD
default !EMBEDDED

fixes the issue.

This is likely a bug in Kconfig tool.

Signed-off-by: Krzysztof Helt <krzysztof.h1@xxxxx>
---

diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
index 7e67dcb..c52204d 100644
--- a/drivers/hid/Kconfig
+++ b/drivers/hid/Kconfig
@@ -153,8 +153,8 @@ config HID_KENSINGTON
Support for Kensington Slimblade Trackball.

config HID_LOGITECH
- tristate "Logitech" if EMBEDDED
- depends on USB_HID
+ tristate "Logitech"
+ depends on EMBEDDED && USB_HID
default !EMBEDDED
---help---
Support for Logitech devices that are not fully compliant with HID standard.
@@ -205,8 +205,8 @@ config HID_NTRIG
Support for N-Trig touch screen.

config HID_PANTHERLORD
- tristate "Pantherlord devices support" if EMBEDDED
- depends on USB_HID
+ tristate "Pantherlord devices support"
+ depends on EMBEDDED && USB_HID
default !EMBEDDED
---help---
Support for PantherLord/GreenAsia based device support.
--
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/