]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 17 Sep 2019 16:02:18 +0000 (18:02 +0200)
commitdfa300e5127a0472c824d9e877789935e60b7d6b
tree7650104ba7b3b974441a5b3e5bf62bedfe849fee
parenta843838579248c0d63727cd48674547b36a9bbb6
HID: wacom: Correct distance scale for 2nd-gen Intuos devices

BugLink: https://bugs.launchpad.net/bugs/1842114
commit b72fb1dcd2ea9d29417711cb302cef3006fa8d5a upstream.

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: eda01dab53 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/hid/wacom_wac.c