summaryrefslogtreecommitdiffstats
path: root/drivers/hid/wacom_wac.h
diff options
context:
space:
mode:
authorAaron Skomra <skomra@gmail.com>2015-08-21 01:05:16 +0200
committerJiri Kosina <jkosina@suse.cz>2015-08-28 20:43:20 +0200
commit70ee06c5f447b9d50747b29d3e8d48ae7ef1cabe (patch)
tree57ef56f7a6a845f59f305b396116b62fb8cdcc3b /drivers/hid/wacom_wac.h
parentHID: wacom: Use tablet-provided touch height/width values for INTUOSHT (diff)
downloadlinux-70ee06c5f447b9d50747b29d3e8d48ae7ef1cabe.tar.xz
linux-70ee06c5f447b9d50747b29d3e8d48ae7ef1cabe.zip
HID: wacom: Set button bits based on a new numbered_buttons
Prior to this commit, numbered button bit setting was done separately for each device type in wacom_setup_pad_capabilities(). Here we add a numbered_buttons property to the wacom_features struct and extract the repeated bit setting code to a new function: wacom_settup_numbered_buttons(). Signed-off-by: Aaron Skomra <aaron.skomra@wacom.com> Reviewed-by: Jason Gerecke <jason.gerecke@wacom.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/wacom_wac.h')
-rw-r--r--drivers/hid/wacom_wac.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/wacom_wac.h b/drivers/hid/wacom_wac.h
index 6233eeab028d..4ee5c13b4e75 100644
--- a/drivers/hid/wacom_wac.h
+++ b/drivers/hid/wacom_wac.h
@@ -148,6 +148,7 @@ struct wacom_features {
int type;
int x_resolution;
int y_resolution;
+ int numbered_buttons;
int x_min;
int y_min;
int device_type;