]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/hid/hid-sony.c
HID: sony: Handle multiple touch events input record
authorRoderick Colenbrander <roderick.colenbrander@sony.com>
Fri, 7 Oct 2016 19:39:38 +0000 (12:39 -0700)
committerJiri Kosina <jkosina@suse.cz>
Mon, 10 Oct 2016 08:43:25 +0000 (10:43 +0200)
commitcdc1c0215ab449077cd160dde4fcd1c5f41dec6e
treec15b3a20bcec1ecd4eed6313fa037db0293c3790
parente7ef53adbf47734e90f9fd6e2a7a57df6f1fbc6b
HID: sony: Handle multiple touch events input record

Read the touch history field in the HID descriptor and use this value
to determine how many touch events to read from the report. As part
of this patch, we did a first attempt of making the offset calculation
code less magical.

Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-sony.c