Message ID | 1309324042-22943-5-git-send-email-djkurtz@chromium.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 8be3c650f54c259694e82282e54b12c14304487e |
Headers | show |
On Tue, Jul 05, 2011 at 10:44:52AM -0700, Chase Douglas wrote: > On 06/28/2011 10:07 PM, djkurtz@chromium.org wrote: > > From: Daniel Kurtz <djkurtz@chromium.org> > > > > 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> Applied. > > > --- > > drivers/input/mouse/synaptics.c | 3 +++ > > 1 files changed, 3 insertions(+), 0 deletions(-) > > > > diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c > > index a4b7801..1ce47b7 100644 > > --- a/drivers/input/mouse/synaptics.c > > +++ b/drivers/input/mouse/synaptics.c > > @@ -703,6 +703,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)) >
diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c index a4b7801..1ce47b7 100644 --- a/drivers/input/mouse/synaptics.c +++ b/drivers/input/mouse/synaptics.c @@ -703,6 +703,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))