From: Ping Cheng Date: Thu, 28 Jun 2012 23:47:30 +0000 (-0700) Subject: Input: wacom - don't retrieve touch_max when it is predefined X-Git-Tag: upstream/snapshot3+hdmi~3244^2~128 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1cecc5cc0658e128bcad0b29edb96f286066571d;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Ping Cheng Tested-by: Nils Kanning Tested-by: Rafi Rubin Reviewed-by: Jason Gerecke Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c index 23a933d..b145841 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; }