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

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
......@@ -398,7 +398,9 @@ static int wacom_parse_hid(struct usb_interface *intf,
break;
case HID_USAGE_CONTACTMAX:
wacom_retrieve_report_data(intf, features);
/* leave touch_max as is if predefined */
if (!features->touch_max)
wacom_retrieve_report_data(intf, features);
i++;
break;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment