projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c57a5e
)
Input: wacom_w8001 - resolution wasn't set for ABS_MT_POSITION_X/Y
author
Ping Cheng
<pinglinux@gmail.com>
Tue, 19 Jul 2016 18:00:51 +0000
(11:00 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Tue, 19 Jul 2016 18:42:42 +0000
(11:42 -0700)
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>
drivers/input/touchscreen/wacom_w8001.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/wacom_w8001.c
b/drivers/input/touchscreen/wacom_w8001.c
index
b6fc4bd
..
c1dac86
100644
(file)
--- 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)