summaryrefslogtreecommitdiff
path: root/drivers/telephony
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@enac.fr>2011-04-21 16:15:59 +0400
committerJiri Kosina <jkosina@suse.cz>2011-04-22 13:54:42 +0400
commit2955caed8b9865c1f04fcde6bd7103d5d5ec9415 (patch)
tree33b6774855886c0ab18333d9b73c375858b37333 /drivers/telephony
parentf786bba4499cf3de20da345ce090457ebcef03b0 (diff)
downloadlinux-2955caed8b9865c1f04fcde6bd7103d5d5ec9415.tar.xz
HID: hid-multitouch: refactor last_field_index
the current implementation requires the devices to report HID_DG_CONTACTCOUNT to set the last_field_index value. However, devices reporting in serial mode (DWAV and PenMount) do not send this field. Other devices (3M) add other fields in the reports descriptor that are not multitouch related at the end, thus the need to add a special case in the default case when handling events. A first work around has been set up but with PenMount devices, we have reached the limit. The idea is to calculate the last_field_index by relying only on multitouch fields the device send. This allows us to remove the handling of non-multitouch events in hid-multitouch, and guarantee that the function mt_emit_event is always called. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@enac.fr> Reviewed-and-tested-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/telephony')
0 files changed, 0 insertions, 0 deletions