summaryrefslogtreecommitdiff
path: root/drivers/input/tablet/wacom_sys.c
diff options
context:
space:
mode:
authorPing Cheng <pinglinux@gmail.com>2012-06-28 16:47:30 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-06-28 17:02:45 -0700
commit1cecc5cc0658e128bcad0b29edb96f286066571d (patch)
tree2c1bb27d19d6ddd974d32f15c8aaef0f7f96b16e /drivers/input/tablet/wacom_sys.c
parent61c91dd4a58b21a783e37208f4d02e3cb4b637c4 (diff)
downloadlwn-1cecc5cc0658e128bcad0b29edb96f286066571d.tar.gz
lwn-1cecc5cc0658e128bcad0b29edb96f286066571d.zip
Input: wacom - don't retrieve touch_max when it is predefined
Some models, such as 0xE6, report more fingers than we process. Reported-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Ping Cheng <pingc@wacom.com> Tested-by: Nils Kanning <nils@kanning.de> Tested-by: Rafi Rubin <rafi@seas.upenn.edu> Reviewed-by: Jason Gerecke <killertofu@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/tablet/wacom_sys.c')
-rw-r--r--drivers/input/tablet/wacom_sys.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c
index 23a933da75cd..b145841bdbe7 100644
--- a/drivers/input/tablet/wacom_sys.c
+++ b/drivers/input/tablet/wacom_sys.c
@@ -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;
}