From: Ping Cheng Date: Thu, 28 Jun 2012 23:46:27 +0000 (-0700) Subject: Input: wacom - fix retrieving touch_max bug X-Git-Tag: v3.5-rc6~10^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61c91dd4a58b21a783e37208f4d02e3cb4b637c4;p=platform%2Fupstream%2Fkernel-adaptation-pc.git 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 Tested-by: Rafi Rubin Reviewed-by: Jason Gerecke Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c index b3a8bd3..23a933d 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)