aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorJason Gerecke <killertofu@gmail.com>2013-11-25 21:43:16 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-11-25 22:03:36 -0500
commit0b279da7af779fa515b70c0f4127001cab22ea86 (patch)
tree3ed0015dc1081ffd11856a851dd3e3684df65826 /drivers/input
parentd0134e9fcfa393f64b4b406a6aac90d9b929a704 (diff)
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 <killertofu@gmail.com> Acked-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/tablet/wacom_wac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/tablet/wacom_wac.c b/drivers/input/tablet/wacom_wac.c
index 9c8eded2e504..3f75f1d3b348 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)
1151 int width, height; 1151 int width, height;
1152 1152
1153 if (features->type >= INTUOSPS && features->type <= INTUOSPL) { 1153 if (features->type >= INTUOSPS && features->type <= INTUOSPL) {
1154 width = data[5]; 1154 width = data[5] * 100;
1155 height = data[6]; 1155 height = data[6] * 100;
1156 } else { 1156 } else {
1157 /* 1157 /*
1158 * "a" is a scaled-down area which we assume is 1158 * "a" is a scaled-down area which we assume is