HID: hid-multitouch: fix wrong protocol detection
authorBenjamin Tissoires <benjamin.tissoires@enac.fr>
Fri, 4 May 2012 12:53:46 +0000 (14:53 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 10 May 2012 09:35:43 +0000 (11:35 +0200)
commit3ac36d15557d1bedfb1151d9911b9587b2d40759
treee69d4cfdd77ddeff31e9296a081d5bd502473184
parent16b79bb8ec4f20527525f8c063ae3e4d77388e97
HID: hid-multitouch: fix wrong protocol detection

The previous implementation introduced a randomness in the splitting
of the different touches reported by the device. This version is more
robust as we don't rely on hi->input->absbit, but on our own structure.

This also prepares hid-multitouch to better support Win8 devices.

[Jiri Kosina <jkosina@suse.cz>: fix build]

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