aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hid/wacom_wac.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hid/wacom_wac.h')
-rw-r--r--drivers/hid/wacom_wac.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/hid/wacom_wac.h b/drivers/hid/wacom_wac.h
index 339ab5d81a2d..0f0b85ec1322 100644
--- a/drivers/hid/wacom_wac.h
+++ b/drivers/hid/wacom_wac.h
@@ -113,6 +113,7 @@ enum {
113 MTSCREEN, 113 MTSCREEN,
114 MTTPC, 114 MTTPC,
115 MTTPC_B, 115 MTTPC_B,
116 HID_GENERIC,
116 MAX_TYPE 117 MAX_TYPE
117}; 118};
118 119
@@ -154,6 +155,20 @@ struct wacom_shared {
154 struct input_dev *touch_input; 155 struct input_dev *touch_input;
155}; 156};
156 157
158struct hid_data {
159 __s16 inputmode; /* InputMode HID feature, -1 if non-existent */
160 __s16 inputmode_index; /* InputMode HID feature index in the report */
161 bool inrange_state;
162 bool invert_state;
163 bool tipswitch;
164 int x;
165 int y;
166 int pressure;
167 int width;
168 int height;
169 int id;
170};
171
157struct wacom_wac { 172struct wacom_wac {
158 char name[WACOM_NAME_MAX]; 173 char name[WACOM_NAME_MAX];
159 char pad_name[WACOM_NAME_MAX]; 174 char pad_name[WACOM_NAME_MAX];
@@ -167,6 +182,7 @@ struct wacom_wac {
167 struct wacom_shared *shared; 182 struct wacom_shared *shared;
168 struct input_dev *input; 183 struct input_dev *input;
169 struct input_dev *pad_input; 184 struct input_dev *pad_input;
185 bool input_registered;
170 int pid; 186 int pid;
171 int battery_capacity; 187 int battery_capacity;
172 int num_contacts_left; 188 int num_contacts_left;
@@ -174,6 +190,7 @@ struct wacom_wac {
174 int ps_connected; 190 int ps_connected;
175 u8 bt_features; 191 u8 bt_features;
176 u8 bt_high_speed; 192 u8 bt_high_speed;
193 struct hid_data hid_data;
177}; 194};
178 195
179#endif 196#endif