summaryrefslogtreecommitdiffstats
path: root/drivers/input/tablet/wacom_sys.c
diff options
context:
space:
mode:
authorPing Cheng <pinglinux@gmail.com>2012-06-29 01:46:27 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-06-29 02:02:40 +0200
commit61c91dd4a58b21a783e37208f4d02e3cb4b637c4 (patch)
treef14fc79eed746fb7102198576e89c351bd3f9564 /drivers/input/tablet/wacom_sys.c
parentInput: fix input.h kernel-doc warning (diff)
downloadlinux-61c91dd4a58b21a783e37208f4d02e3cb4b637c4.tar.xz
linux-61c91dd4a58b21a783e37208f4d02e3cb4b637c4.zip
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,
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)