]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: generic: Add support for sensor offsets
authorJason Gerecke <killertofu@gmail.com>
Thu, 20 Oct 2016 01:03:50 +0000 (18:03 -0700)
committerJiri Kosina <jkosina@suse.cz>
Thu, 20 Oct 2016 07:54:00 +0000 (09:54 +0200)
commitdd8636851df353e018858e24e33e9e1908e4bbfe
tree7075631dd1dec30497cbcda00612e1f15d9b0eae
parentc92c9dc8218472a8ddcf0ba8fe8d294b977513ff
HID: wacom: generic: Add support for sensor offsets

Many of Wacom's display tablets include an "outbound" area where pen
digitizing is possible but outside of the display area. To accommodate
such sensors in the HID_GENERIC codepath, we add support for the
necessary vendor-defined HID feature usages and adjust the min/max
values of the X and Y axes accordingly, similar to what is done in
the non-generic codepath.

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_sys.c
drivers/hid/wacom_wac.c
drivers/hid/wacom_wac.h