]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Correct distance scale for 2nd-gen Intuos devices
authorJason Gerecke <jason.gerecke@wacom.com>
Wed, 7 Aug 2019 21:11:55 +0000 (14:11 -0700)
committerJiri Kosina <jkosina@suse.cz>
Mon, 19 Aug 2019 12:08:58 +0000 (14:08 +0200)
commitc2da15ba0c98cbbdd0ae3d097cc5237f5293b600
tree19a9e1ccde3ebefcd24203b7f90c542b9e318c23
parent4f81890cade9eb7e2d15f4d9f8cc04847e22affd
HID: wacom: Correct distance scale for 2nd-gen Intuos devices

Distance values reported by 2nd-gen Intuos tablets are on an inverted
scale (0 == far, 63 == near). We need to change them over to a normal
scale before reporting to userspace or else userspace drivers and
applications can get confused.

Ref: https://github.com/linuxwacom/input-wacom/issues/98
Fixes: 5a202ecc99 ("HID: wacom: Add four new Intuos devices")
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Cc: <stable@vger.kernel.org> # v4.4+
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c