aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/tablet/wacom_sys.c
diff options
context:
space:
mode:
authorPing Cheng <pinglinux@gmail.com>2012-06-28 19:46:27 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-06-28 20:02:40 -0400
commit61c91dd4a58b21a783e37208f4d02e3cb4b637c4 (patch)
treef14fc79eed746fb7102198576e89c351bd3f9564 /drivers/input/tablet/wacom_sys.c
parent2177905ca7419c49910d47e38e44790affd918cc (diff)
Input: wacom - fix retrieving touch_max bug
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>
Diffstat (limited to 'drivers/input/tablet/wacom_sys.c')
-rw-r--r--drivers/input/tablet/wacom_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c
index b3a8bd3514b2..23a933da75cd 100644
--- 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,
213 213
214 rep_data[0] = 12; 214 rep_data[0] = 12;
215 result = wacom_get_report(intf, WAC_HID_FEATURE_REPORT, 215 result = wacom_get_report(intf, WAC_HID_FEATURE_REPORT,
216 rep_data[0], &rep_data, 2, 216 rep_data[0], rep_data, 2,
217 WAC_MSG_RETRIES); 217 WAC_MSG_RETRIES);
218 218
219 if (result >= 0 && rep_data[1] > 2) 219 if (result >= 0 && rep_data[1] > 2)