]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: generic: Add support for height, tilt, and twist usages
authorJason Gerecke <killertofu@gmail.com>
Thu, 20 Oct 2016 01:03:42 +0000 (18:03 -0700)
committerJiri Kosina <jkosina@suse.cz>
Thu, 20 Oct 2016 07:53:56 +0000 (09:53 +0200)
commitd307e63f80a6f2192dc6cd39012bc2e422228ec2
tree76c8c01a73f702be505cf3ddff8c6eeea4c07245
parentb13e1b68e2c77b2971c2c5c5d74fdb589afd1ec3
HID: wacom: generic: Add support for height, tilt, and twist usages

The HID standard defines usages that allow digitizers to report the pen's
height, tilt, and rotation and which are used by Wacom's new "MobileStudio
Pro" devices.

Note that 'hidinput_calc_abs_res' expects ABS_Z (historically used by our
driver to report twist) to have linear units. To ensure it calculates a
resolution with the actually-angular units provided in the HID descriptor
we nedd to lie and tell it we're calculating it for the (rotational) ABS_RZ
axis instead.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c
include/linux/hid.h