HID: hid-multitouch: Only match MT interfaces
authorHenrik Rydberg <rydberg@euromail.se>
Fri, 4 May 2012 13:32:04 +0000 (15:32 +0200)
committerJiri Kosina <jkosina@suse.cz>
Sat, 5 May 2012 21:27:54 +0000 (23:27 +0200)
commit2c2110e90b5a859cea8eccad9d42a44da9bfdc2a
tree4fde2c62b8231858084299fba4d2274e2bfc5fe5
parent8215d557e5f3a70e50e07c857d35c250fee62a73
HID: hid-multitouch: Only match MT interfaces

All known hid-multitouch devices currently match any device group.
However, some devices present interfaces belonging to different groups,
resulting in a race between the hid-generic and hid-multitouch modules.
This patch narrows the MT device list to match only HID_GROUP_MULTITOUCH,
which solves the problem.

As an exception, the USB_DEVICE_ID_CYPRESS_TRUETOUCH panel is not
modified, in order to suppress the unwanted extra interfaces of the
device.

Reported-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@enac.fr>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-multitouch.c