input - wacom: Support 2FGT in MT format
Subsystems (2)
PATCH v4 4/4 input - wacom: Support 2FGT in MT format
Reviewed-by Henrik Rydberg <[email protected]>
Reviewed-by Chris Bagwell <[email protected]>
Signed-off-by Ping Cheng <[email protected]>
---
v4: Added Henrik's Reviewed-by.
--- drivers/input/tablet/wacom_sys.c | 12 ++++---- drivers/input/tablet/wacom_wac.c | 59 ++++++++++++++++++++++++++++++-------- 2 files changed, 53 insertions(+), 18 deletions(-)
drivers/input/tablet/wacom_sys.c +6 -6
@@ -193,16 +193,16 @@ static int wacom_parse_hid(struct usb_interface *intf, struct hid_descriptor *hicase HID_USAGE_X :if (usage ==WCM_DESKTOP ) {if (finger) { - features->device_type =BTN_TOOL_DOUBLETAP ; + features->device_type =BTN_TOOL_FINGER ;if (features->type ==TABLETPC2FG ) {/* need to reset back */ features->pktlen =WACOM_PKGLEN_TPC2FG ; - features->device_type =BTN_TOOL_TRIPLETAP ; + features->device_type =BTN_TOOL_DOUBLETAP ; }if (features->type ==BAMBOO_PT ) {/* need to reset back */ features->pktlen =WACOM_PKGLEN_BBTOUCH ; - features->device_type =BTN_TOOL_TRIPLETAP ; + features->device_type =BTN_TOOL_DOUBLETAP ; features->x_phy =get_unaligned_le16 (&report[i +5 ]); features->x_max =
@@ -241,11 +241,11 @@ static int wacom_parse_hid(struct usb_interface *intf, struct hid_descriptor *hicase HID_USAGE_Y :if (usage ==WCM_DESKTOP ) {if (finger) { - features->device_type =BTN_TOOL_DOUBLETAP ; + features->device_type =BTN_TOOL_FINGER ;if (features->type ==TABLETPC2FG ) {/* need to reset back */ features->pktlen =WACOM_PKGLEN_TPC2FG ; - features->device_type =BTN_TOOL_TRIPLETAP ; + features->device_type =BTN_TOOL_DOUBLETAP ; features->y_max =get_unaligned_le16 (&report[i +3 ]); features->y_phy =
@@ -254,7 +254,7 @@ static int wacom_parse_hid(struct usb_interface *intf, struct hid_descriptor *hi }else if (features->type ==BAMBOO_PT ) {/* need to reset back */ features->pktlen =WACOM_PKGLEN_BBTOUCH ; - features->device_type =BTN_TOOL_TRIPLETAP ; + features->device_type =BTN_TOOL_DOUBLETAP ; features->y_phy =get_unaligned_le16 (&report[i +3 ]); features->y_max =
drivers/input/tablet/wacom_wac.c +47 -12
108 lines not on this page · raw message
Signature · 1 line
1.7.1