Skip to content

Commit

Permalink
Revert "Input: synaptics - fix handling of disabling gesture mode"
Browse files Browse the repository at this point in the history
This reverts commit e51e384: we
actually do want the device to work in extended W mode, as this is the
mode that allows us receiving multiple contact information.

Cc: stable@vger.kernel.org
  • Loading branch information
Dmitry Torokhov committed Oct 2, 2015
1 parent 218c1f7 commit 62d7846
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions drivers/input/mouse/synaptics.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,18 +519,14 @@ static int synaptics_set_mode(struct psmouse *psmouse)
struct synaptics_data *priv = psmouse->private;

priv->mode = 0;

if (priv->absolute_mode) {
if (priv->absolute_mode)
priv->mode |= SYN_BIT_ABSOLUTE_MODE;
if (SYN_CAP_EXTENDED(priv->capabilities))
priv->mode |= SYN_BIT_W_MODE;
}

if (!SYN_MODE_WMODE(priv->mode) && priv->disable_gesture)
if (priv->disable_gesture)
priv->mode |= SYN_BIT_DISABLE_GESTURE;

if (psmouse->rate >= 80)
priv->mode |= SYN_BIT_HIGH_RATE;
if (SYN_CAP_EXTENDED(priv->capabilities))
priv->mode |= SYN_BIT_W_MODE;

if (synaptics_mode_cmd(psmouse, priv->mode))
return -1;
Expand Down

0 comments on commit 62d7846

Please sign in to comment.