HID: wacom: generic: support the 'report valid' usage for touch
authorAaron Armstrong Skomra <skomra@gmail.com>
Wed, 12 Jun 2019 21:19:30 +0000 (14:19 -0700)
committerJiri Kosina <jkosina@suse.cz>
Thu, 13 Jun 2019 14:48:49 +0000 (16:48 +0200)
commitf4e11d599610a61e978f722f6ade660872a43816
tree48a0a6accb017f5a5739818a51fca7700f8c6c7d
parent184eccd40389df29abefab88092c4ff33191fd0c
HID: wacom: generic: support the 'report valid' usage for touch

Finger data is separated into chunks in our Bluetooth report,
where each report contains the same number of chunks. Those chunks
are not aligned in any particular way to a set of finger touches.
That is, the first half of a group of simultaneous touches may
be in one chunk at the end of a report and the second half could
be at the beginning of the next report.

Also some chunks contain no data and potentially some chunks could
contain leftover (bad) data.

Introduce and process the WACOM_HID_WT_REPORT_VALID usage that the
device uses to let us know if we should process a chunk of data.

Signed-off-by: Aaron Armstrong Skomra <aaron.skomra@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c
drivers/hid/wacom_wac.h