HID: wacom: Limit touchstrip data to 13 bits
authorJason Gerecke <killertofu@gmail.com>
Wed, 16 Dec 2015 21:37:33 +0000 (13:37 -0800)
committerJiri Kosina <jkosina@suse.cz>
Thu, 17 Dec 2015 23:03:06 +0000 (00:03 +0100)
commitf73d08d073a4bcb8bb1bd88444f07f39c84400da
tree89593a877378d1e4d516d796a3385a9c9ae54f44
parent8f9cfdd359478ea70da0144b0cb407a4734f14cd
HID: wacom: Limit touchstrip data to 13 bits

Commit c7f0522 uses sixteen bits of data in the construction of 'strip1'
and 'strip2'. This can cause problems in some cases, however, since some
tablets store flags in the MSB of data[2] and data[4] that should not be
included in these values. This restores the 0x1f mask that used prior
to c7f0522.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c