summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorDaniel Kurtz <djkurtz@chromium.org>2011-07-06 22:27:47 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2011-07-06 23:01:00 -0700
commit8be3c650f54c259694e82282e54b12c14304487e (patch)
tree7e332ca45edea3c0d26269285d7c7959559bc187 /drivers/input
parent84460014505685ab234fa8e1a45dffd32f3a46a7 (diff)
downloadlinux-3.10-8be3c650f54c259694e82282e54b12c14304487e.tar.gz
linux-3.10-8be3c650f54c259694e82282e54b12c14304487e.tar.bz2
linux-3.10-8be3c650f54c259694e82282e54b12c14304487e.zip
Input: synaptics - set resolution for MT_POSITION_X/Y axes
Set resolution for MT_POSITION_X and MT_POSITION_Y to match ABS_X and ABS_Y, respectively. Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Acked-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/mouse/synaptics.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
index e06e045bf90..477d1eaea8b 100644
--- 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))