]> git.baikalelectronics.ru Git - kernel.git/commit
HID: rmi: fallback to generic/multitouch if hid-rmi is not built
authorJiri Kosina <jkosina@suse.cz>
Wed, 22 Feb 2017 00:13:52 +0000 (01:13 +0100)
committerJiri Kosina <jkosina@suse.cz>
Wed, 22 Feb 2017 00:13:52 +0000 (01:13 +0100)
commitfc2655ad1b7f981935add287c571b71e146f5ad0
treef05b53af973fcec9994707d2d44abf8abb6545c1
parentf09acae78fbd4ae7aa3531c1f2914442a2d3bbd6
HID: rmi: fallback to generic/multitouch if hid-rmi is not built

Commit c3086dc92602 ("HID: rmi: Handle all Synaptics touchpads using hid-rmi")
unconditionally switches over handling of all Synaptics touchpads to hid-rmi
(to make use of extended features of the HW); in case CONFIG_HID_RMI is
disabled though this renders the touchpad unusable, as the

HID_DEVICE(HID_BUS_ANY, HID_GROUP_RMI, HID_ANY_ID, HID_ANY_ID)

match doesn't exist and generic/multitouch doesn't bind to it either (due
to hid group mismatch).

Fix this by switching over to hid-rmi only if it has been actually built.

Fixes: c3086dc92602 ("HID: rmi: Handle all Synaptics touchpads using hid-rmi")
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Tested-by: Andrew Duggan <aduggan@synaptics.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c