projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8446001
)
Input: synaptics - set resolution for MT_POSITION_X/Y axes
author
Daniel Kurtz
<
[email protected]
>
Thu, 7 Jul 2011 05:27:47 +0000
(22:27 -0700)
committer
Dmitry Torokhov
<
[email protected]
>
Thu, 7 Jul 2011 06:01:00 +0000
(23:01 -0700)
Set resolution for MT_POSITION_X and MT_POSITION_Y to match ABS_X and
ABS_Y, respectively.
Signed-off-by: Daniel Kurtz <
[email protected]
>
Acked-by: Chase Douglas <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/mouse/synaptics.c
patch
|
blob
|
history
diff --git
a/drivers/input/mouse/synaptics.c
b/drivers/input/mouse/synaptics.c
index e06e045bf907a4a77ed33998b94ad29438e6c542..477d1eaea8b5783d255ef5c25127d3aec8b6fd40 100644
(file)
--- a/
drivers/input/mouse/synaptics.c
+++ b/
drivers/input/mouse/synaptics.c
@@
-701,6
+701,9
@@
static void set_input_params(struct input_dev *dev, struct synaptics_data *priv)
priv->x_max ?: XMAX_NOMINAL, 0, 0);
input_set_abs_params(dev, ABS_MT_POSITION_Y, YMIN_NOMINAL,
priv->y_max ?: YMAX_NOMINAL, 0, 0);
+
+ input_abs_set_res(dev, ABS_MT_POSITION_X, priv->x_res);
+ input_abs_set_res(dev, ABS_MT_POSITION_Y, priv->y_res);
}
if (SYN_CAP_PALMDETECT(priv->capabilities))