]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - include/linux/hid.h
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)
commit50066a042da5457ae5b6397425f0a7ca556231e3
tree76c8c01a73f702be505cf3ddff8c6eeea4c07245
parentf2209d4aefac246772152c5294af49f2800f646b
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