Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1cecc5cc authored by Ping Cheng's avatar Ping Cheng Committed by Dmitry Torokhov
Browse files

Input: wacom - don't retrieve touch_max when it is predefined



Some models, such as 0xE6, report more fingers than we process.

Reported-by: default avatarJonathan Nieder <jrnieder@gmail.com>
Signed-off-by: default avatarPing Cheng <pingc@wacom.com>
Tested-by: default avatarNils Kanning <nils@kanning.de>
Tested-by: default avatarRafi Rubin <rafi@seas.upenn.edu>
Reviewed-by: default avatarJason Gerecke <killertofu@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 61c91dd4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -398,6 +398,8 @@ static int wacom_parse_hid(struct usb_interface *intf,
				break;

			case HID_USAGE_CONTACTMAX:
				/* leave touch_max as is if predefined */
				if (!features->touch_max)
					wacom_retrieve_report_data(intf, features);
				i++;
				break;