]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: wacom: Support devices with two touchrings
authorJason Gerecke <jason.gerecke@wacom.com>
Tue, 30 Jul 2024 15:51:59 +0000 (08:51 -0700)
committerJiri Kosina <jkosina@suse.com>
Fri, 2 Aug 2024 11:02:46 +0000 (13:02 +0200)
commit19591e1a8a2e9e8ff53cc3121e6650bbf02f8403
tree995d8195188aa565de844ee794c97cd18d1e18e3
parent7ca234e3ae457f6941601d58db22736cd133ef4c
HID: wacom: Support devices with two touchrings

If a device has more than one touchring, we want to be sure that userspace
is able to distinguish them. Following previous standards, the first
absolute ring will be reported as ABS_WHEEL and the second as ABS_THROTTLE.
Relative rings will use REL_WHEEL_HI_RES / REL_WHEEL for the first and
REL_HWHEEL_HI_RES / REL_HWHEEL for the second.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/wacom_wac.c
drivers/hid/wacom_wac.h