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)
commit345857bb493fbff15632a6bdf04713163ccd6fe6
tree7075631dd1dec30497cbcda00612e1f15d9b0eae
parente779ef23104869d74f56fbd199a90e76699eb699
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