summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/wacom_w8001.c
diff options
context:
space:
mode:
authorPing Cheng <pinglinux@gmail.com>2016-07-19 20:00:51 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-07-19 20:42:42 +0200
commitae10850c5cf27c03bf89dc2ee113c61c4d98a854 (patch)
treeb8a5aa766f2dda1486741c43ea931fee5d63ba6d /drivers/input/touchscreen/wacom_w8001.c
parentMerge branch 'for-linus' into next (diff)
downloadlinux-ae10850c5cf27c03bf89dc2ee113c61c4d98a854.tar.xz
linux-ae10850c5cf27c03bf89dc2ee113c61c4d98a854.zip
Input: wacom_w8001 - resolution wasn't set for ABS_MT_POSITION_X/Y
Signed-off-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/wacom_w8001.c')
-rw-r--r--drivers/input/touchscreen/wacom_w8001.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/wacom_w8001.c b/drivers/input/touchscreen/wacom_w8001.c
index b6fc4bde79de..c1dac8628817 100644
--- a/drivers/input/touchscreen/wacom_w8001.c
+++ b/drivers/input/touchscreen/wacom_w8001.c
@@ -525,6 +525,8 @@ static int w8001_setup_touch(struct w8001 *w8001, char *basename,
0, touch.y, 0, 0);
input_set_abs_params(dev, ABS_MT_TOOL_TYPE,
0, MT_TOOL_MAX, 0, 0);
+ input_abs_set_res(dev, ABS_MT_POSITION_X, touch.panel_res);
+ input_abs_set_res(dev, ABS_MT_POSITION_Y, touch.panel_res);
strlcat(basename, " 2FG", basename_sz);
if (w8001->max_pen_x && w8001->max_pen_y)