summaryrefslogtreecommitdiffstats
path: root/drivers/hid/Kconfig
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2013-05-28 11:22:09 +0200
committerJiri Kosina <jkosina@suse.cz>2013-05-28 11:22:09 +0200
commit40e32ee6e475852f532c847ed1804b87f6531a67 (patch)
treec82f929072fbd08bac483df64b3207882d61536f /drivers/hid/Kconfig
parentf04d51404f51947d3feabf2518495ba5aa3bb2c4 (diff)
downloadlinux-40e32ee6e475852f532c847ed1804b87f6531a67.tar.bz2
HID: sony: fix leds dependency
The newly added support for Buzz controller - introduced Kconfig selection of LEDS_CLASS - introduced conditional preprocessor checking for CONFIG_LEDS_CLASS This has multiple problems -- namely select doesn't work transitively, so it shouldn't be used. On the other hand the code assumed that LEDS_CLASS is enabled in some places, but not everywhere. Put LEDS_CLASS as a Kconfig dependency for hid-sony and remove all the CONFIG_LEDS_CLASS conditionals from hid-sony. Reported-by: fengguang.wu@intel.com Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/Kconfig')
-rw-r--r--drivers/hid/Kconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
index 53caf0b115cb..5bad26ef227a 100644
--- a/drivers/hid/Kconfig
+++ b/drivers/hid/Kconfig
@@ -596,8 +596,8 @@ config HID_SAMSUNG
config HID_SONY
tristate "Sony PS2/3 accessories"
depends on USB_HID
- select NEW_LEDS
- select LEDS_CLASS
+ depends on NEW_LEDS
+ depends on LEDS_CLASS
---help---
Support for