Skip to content

Commit 9633920

Browse files
jigpuJiri Kosina
authored andcommitted
HID: wacom: Enable pad device for older Bamboo Touch tablets
Commit 862cf55 ("HID: wacom: Introduce a new WACOM_DEVICETYPE_PAD device_type") neglected to set the WACOM_DEVICETYPE_PAD flag for older two-finger Bamboo Touch tablets. Not only does this result in the pad device not appearing when such a tablet is plugged in, but also causes a segfault when 'wacom_bpt_touch' tries to send pad events. This patch adds the flag to resolve these issues. Signed-off-by: Jason Gerecke <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 1cc1cc9 commit 9633920

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/hid/wacom_wac.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2213,6 +2213,9 @@ void wacom_setup_device_quirks(struct wacom *wacom)
22132213
features->x_max = 4096;
22142214
features->y_max = 4096;
22152215
}
2216+
else if (features->pktlen == WACOM_PKGLEN_BBTOUCH) {
2217+
features->device_type |= WACOM_DEVICETYPE_PAD;
2218+
}
22162219
}
22172220

22182221
/*

0 commit comments

Comments
 (0)