From: Jason Gerecke Date: Tue, 26 Nov 2013 02:43:16 +0000 (-0800) Subject: Input: wacom - scale up touch width and height values for Intuos Pro X-Git-Tag: v3.14~3^2~7^2~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0b279da7af779fa515b70c0f4127001cab22ea86;p=kernel%2Fkernel-generic.git Input: wacom - scale up touch width and height values for Intuos Pro The width and height values reported by the Intuos Pro are not in surface units as required by the MT protocol. A simple multiplier of 100x corrects it. Signed-off-by: Jason Gerecke Acked-by: Ping Cheng Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c index 9c8eded..3f75f1d 100644 --- a/drivers/input/tablet/wacom_wac.c +++ b/drivers/input/tablet/wacom_wac.c @@ -1151,8 +1151,8 @@ static void wacom_bpt3_touch_msg(struct wacom_wac *wacom, unsigned char *data) int width, height; if (features->type >= INTUOSPS && features->type <= INTUOSPL) { - width = data[5]; - height = data[6]; + width = data[5] * 100; + height = data[6] * 100; } else { /* * "a" is a scaled-down area which we assume is