]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd401bfcad53d7e543bf6828aae356f09e5125527
tree4fde2c62b8231858084299fba4d2274e2bfc5fe5
parent515d96ad1b5ab21a730acffb1b16afc6d409a2a1
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