]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Correct touch maximum XY of 2nd-gen Intuos
authorJason Gerecke <killertofu@gmail.com>
Tue, 26 Jun 2018 16:58:02 +0000 (09:58 -0700)
committerJiri Kosina <jkosina@suse.cz>
Tue, 3 Jul 2018 10:09:34 +0000 (12:09 +0200)
commita1dd8d135fe6bcead9e52643460ef56ef4c560db
treec639cc668fcecb2cbb34a9dbb54f3836a095bfb5
parent99a98ef2cf5e6a5043db4401b24efd144089f665
HID: wacom: Correct touch maximum XY of 2nd-gen Intuos

The touch sensors on the 2nd-gen Intuos tablets don't use a 4096x4096
sensor like other similar tablets (3rd-gen Bamboo, Intuos5, etc.).
The incorrect maximum XY values don't normally affect userspace since
touch input from these devices is typically relative rather than
absolute. It does, however, cause problems when absolute distances
need to be measured, e.g. for gesture recognition. Since the resolution
of the touch sensor on these devices is 10 units / mm (versus 100 for
the pen sensor), the proper maximum values can be calculated by simply
dividing by 10.

Fixes: c9fcdce081 ("Input: wacom - add support for three new Intuos devices")
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c