summaryrefslogtreecommitdiff
path: root/drivers/hid/wacom_wac.h
diff options
context:
space:
mode:
authorJason Gerecke <jason.gerecke@wacom.com>2024-07-30 08:51:59 -0700
committerJiri Kosina <jkosina@suse.com>2024-08-02 13:02:46 +0200
commit19591e1a8a2e9e8ff53cc3121e6650bbf02f8403 (patch)
tree995d8195188aa565de844ee794c97cd18d1e18e3 /drivers/hid/wacom_wac.h
parent7ca234e3ae457f6941601d58db22736cd133ef4c (diff)
downloadlinux-next-19591e1a8a2e9e8ff53cc3121e6650bbf02f8403.tar.gz
linux-next-19591e1a8a2e9e8ff53cc3121e6650bbf02f8403.zip
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>
Diffstat (limited to 'drivers/hid/wacom_wac.h')
-rw-r--r--drivers/hid/wacom_wac.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/wacom_wac.h b/drivers/hid/wacom_wac.h
index aeba2f3082f0..55e0c7a9fdcb 100644
--- a/drivers/hid/wacom_wac.h
+++ b/drivers/hid/wacom_wac.h
@@ -313,6 +313,7 @@ struct hid_data {
int height;
int id;
int ring_value;
+ int ring2_value;
int cc_report;
int cc_index;
int cc_value_index;
@@ -356,6 +357,8 @@ struct wacom_wac {
int num_contacts_left;
u8 bt_features;
u8 bt_high_speed;
+ u8 absring_count;
+ u8 relring_count;
int mode_report;
int mode_value;
struct hid_data hid_data;