Skip to content

Commit

Permalink
Input: wacom - fix retrieving touch_max bug
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ping Cheng authored and Dmitry Torokhov committed Jun 29, 2012
1 parent 2177905 commit 61c91dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/tablet/wacom_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 61c91dd

Please sign in to comment.