Skip to content

Commit 8b4a0c1

Browse files
Pinglinuxdtor
authored andcommitted
Input: wacom - use BTN_TOOL_FINGER to indicate touch device type
Tested-by: Chris Bagwell <[email protected]> Reviewed-by: Chris Bagwell <[email protected]> Signed-off-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 393f9ff commit 8b4a0c1

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

drivers/input/tablet/wacom_sys.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static int wacom_parse_logical_collection(unsigned char *report,
176176

177177
/* Logical collection is only used by 3rd gen Bamboo Touch */
178178
features->pktlen = WACOM_PKGLEN_BBTOUCH3;
179-
features->device_type = BTN_TOOL_DOUBLETAP;
179+
features->device_type = BTN_TOOL_FINGER;
180180

181181
/*
182182
* Stylus and Touch have same active area
@@ -286,12 +286,10 @@ static int wacom_parse_hid(struct usb_interface *intf,
286286
if (features->type == TABLETPC2FG) {
287287
/* need to reset back */
288288
features->pktlen = WACOM_PKGLEN_TPC2FG;
289-
features->device_type = BTN_TOOL_DOUBLETAP;
290289
}
291290
if (features->type == BAMBOO_PT) {
292291
/* need to reset back */
293292
features->pktlen = WACOM_PKGLEN_BBTOUCH;
294-
features->device_type = BTN_TOOL_DOUBLETAP;
295293
features->x_phy =
296294
get_unaligned_le16(&report[i + 5]);
297295
features->x_max =
@@ -325,7 +323,6 @@ static int wacom_parse_hid(struct usb_interface *intf,
325323
if (features->type == TABLETPC2FG) {
326324
/* need to reset back */
327325
features->pktlen = WACOM_PKGLEN_TPC2FG;
328-
features->device_type = BTN_TOOL_DOUBLETAP;
329326
features->y_max =
330327
get_unaligned_le16(&report[i + 3]);
331328
features->y_phy =
@@ -334,7 +331,6 @@ static int wacom_parse_hid(struct usb_interface *intf,
334331
} else if (features->type == BAMBOO_PT) {
335332
/* need to reset back */
336333
features->pktlen = WACOM_PKGLEN_BBTOUCH;
337-
features->device_type = BTN_TOOL_DOUBLETAP;
338334
features->y_phy =
339335
get_unaligned_le16(&report[i + 3]);
340336
features->y_max =

drivers/input/tablet/wacom_wac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ void wacom_setup_input_capabilities(struct input_dev *input_dev,
13171317
break;
13181318

13191319
case TABLETPC2FG:
1320-
if (features->device_type == BTN_TOOL_DOUBLETAP) {
1320+
if (features->device_type == BTN_TOOL_FINGER) {
13211321

13221322
input_mt_init_slots(input_dev, 2);
13231323
input_set_abs_params(input_dev, ABS_MT_TOOL_TYPE,
@@ -1366,7 +1366,7 @@ void wacom_setup_input_capabilities(struct input_dev *input_dev,
13661366

13671367
__set_bit(INPUT_PROP_POINTER, input_dev->propbit);
13681368

1369-
if (features->device_type == BTN_TOOL_DOUBLETAP) {
1369+
if (features->device_type == BTN_TOOL_FINGER) {
13701370
__set_bit(BTN_LEFT, input_dev->keybit);
13711371
__set_bit(BTN_FORWARD, input_dev->keybit);
13721372
__set_bit(BTN_BACK, input_dev->keybit);

0 commit comments

Comments
 (0)