]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5d767a0ce0395a84e6e023e939fa8c6f4f220c5f
tree89593a877378d1e4d516d796a3385a9c9ae54f44
parent2f655f0ffbbf2d1a29a4100016e9f4350f83cc57
HID: wacom: Limit touchstrip data to 13 bits

Commit 2567dd3 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 2567dd3.

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