HID: hid-multitouch: fix input mode feature command
authorBenjamin Tissoires <benjamin.tissoires@enac.fr>
Tue, 19 Jun 2012 12:39:52 +0000 (14:39 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 28 Jun 2012 08:29:38 +0000 (10:29 +0200)
commit4aceed37e315e8eaa26cb4c8dfd619a32fa24669
treec15e08a4f7d857375649a1313b215c84cfab9675
parent4380d8198845da88915c93a4b3f9cb2fa0f917be
HID: hid-multitouch: fix input mode feature command

Zytronic panels shows a new way of setting the Input Mode feature.
This feature is put in the second usage in the HID feature, instead
of the first, as the majority of the multitouch devices.

This patch adds a detection step when the feature is presented to know
where the feature is located in the report. We can then trigger the right
command to the device. This removes the magic number "0" in the function
mt_set_input_mode.

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