]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit28faa780451e8fe8dba575acfea6d91a5188208c
treec15e08a4f7d857375649a1313b215c84cfab9675
parent7de229946a1966a1b8b83a5f4b5b3496ba8b6a2f
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