OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2177905
)
Input: wacom - fix retrieving touch_max bug
author
Ping Cheng
<pinglinux@gmail.com>
Thu, 28 Jun 2012 23:46:27 +0000
(16:46 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Fri, 29 Jun 2012 00:02:40 +0000
(17:02 -0700)
rep_data is not an array anymore, so taking it's address when passing to
wacom_get_report() is wrong.
Signed-off-by: Ping Cheng <pingc@wacom.com>
Tested-by: Rafi Rubin <rafi@seas.upenn.edu>
Reviewed-by: Jason Gerecke <killertofu@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
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
b3a8bd3
..
23a933d
100644
(file)
--- a/
drivers/input/tablet/wacom_sys.c
+++ b/
drivers/input/tablet/wacom_sys.c
@@
-213,7
+213,7
@@
static void wacom_retrieve_report_data(struct usb_interface *intf,
rep_data[0] = 12;
result = wacom_get_report(intf, WAC_HID_FEATURE_REPORT,
- rep_data[0],
&
rep_data, 2,
+ rep_data[0], rep_data, 2,
WAC_MSG_RETRIES);
if (result >= 0 && rep_data[1] > 2)