projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61c91dd
)
Input: wacom - don't retrieve touch_max when it is predefined
author
Ping Cheng
<
[email protected]
>
Thu, 28 Jun 2012 23:47:30 +0000
(16:47 -0700)
committer
Dmitry Torokhov
<
[email protected]
>
Fri, 29 Jun 2012 00:02:45 +0000
(17:02 -0700)
Some models, such as 0xE6, report more fingers than we process.
Reported-by: Jonathan Nieder <
[email protected]
>
Signed-off-by: Ping Cheng <
[email protected]
>
Tested-by: Nils Kanning <
[email protected]
>
Tested-by: Rafi Rubin <
[email protected]
>
Reviewed-by: Jason Gerecke <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/tablet/wacom_sys.c
patch
|
blob
|
history
diff --git
a/drivers/input/tablet/wacom_sys.c
b/drivers/input/tablet/wacom_sys.c
index 23a933da75cdcc50dd505a75d5dd201cfffbf676..b145841bdbe7daddbc8eb3745e94839434e978d4 100644
(file)
--- 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;
}