]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/hid/wacom_wac.c
HID: wacom: Clean up value reading
authorJason Gerecke <killertofu@gmail.com>
Tue, 1 Dec 2015 01:13:51 +0000 (17:13 -0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 2 Dec 2015 20:44:52 +0000 (21:44 +0100)
commit5f33f430efe3ce2dfe4e9c5eeabb89ea5df145b6
treed6ee445593ab6d36c470fa9bd582f34f23ec05d3
parent571f572f9acf7e03fd0e8eb1449e75447295d457
HID: wacom: Clean up value reading

Make the logic for reading X, Y, distance, and pressure a bit more
clear. An additional bit was stuffed into the packet format many
models back, and /most/ devices in use will use it. If we happen
to be dealing with a particularly old tablet, just shift it off
the end to pretend we never read it.

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