]> git.baikalelectronics.ru Git - kernel.git/commit
HID: sony: fix leds dependency
authorJiri Kosina <jkosina@suse.cz>
Tue, 28 May 2013 09:22:09 +0000 (11:22 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 28 May 2013 09:22:09 +0000 (11:22 +0200)
commit9514c726001aedfa3b747d196e03cf7515d265c8
treec82f929072fbd08bac483df64b3207882d61536f
parentcded5b2391a0514be586ecf22e3e842b24a3e92f
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>
drivers/hid/Kconfig
drivers/hid/hid-sony.c