HID: fix hid-ff drivers so that devices work even without ff support
authorJiri Kosina <jkosina@suse.cz>
Fri, 15 May 2009 13:46:44 +0000 (15:46 +0200)
committerJiri Kosina <jkosina@suse.cz>
Fri, 15 May 2009 13:51:36 +0000 (15:51 +0200)
commit0f6f4319a72a2b32d19643ff811f25633d8b0207
treec9b482414ff2d974736a7e829d22aaf50b94d82b
parentfac733f029251a393c42a8313432f2d9fe43bb83
HID: fix hid-ff drivers so that devices work even without ff support

Currently, the hid-*ff force feedback drivers, which claim the blacklisted
device on a HID bus, are only compiled in if the user selects force feedback
support.

However we want the device to be supported even when the kernel is configured
without force feedback.

This patch fixes the drivers in a way that they get compiled even if force
feedback is turned off; all the force feedback support code is compiled out in
such case, and the driver works as a usual driver on HID bus, claiming and
initializing the device, making it operational without FF effects.

Reported-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/Kconfig
drivers/hid/Makefile
drivers/hid/hid-drff.c
drivers/hid/hid-gaff.c
drivers/hid/hid-tmff.c
drivers/hid/hid-zpff.c