Commit b30dc120 authored by David Moore's avatar David Moore Committed by Dmitry Torokhov

Input: ALPS - fix resume (for DualPoints)

The driver would not reset pass-through mode when performing
resume of a DualPoint touchpad causing it to stop working
until next reboot.
Signed-off-by: default avatarVojtech Pavlik <vojtech@suse.cz>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 9ba5eaaf
...@@ -358,7 +358,7 @@ static int alps_reconnect(struct psmouse *psmouse) ...@@ -358,7 +358,7 @@ static int alps_reconnect(struct psmouse *psmouse)
if (!(priv->i = alps_get_model(psmouse, &version))) if (!(priv->i = alps_get_model(psmouse, &version)))
return -1; return -1;
if (priv->i->flags & ALPS_PASS && alps_passthrough_mode(psmouse, 1)) if ((priv->i->flags & ALPS_PASS) && alps_passthrough_mode(psmouse, 1))
return -1; return -1;
if (alps_get_status(psmouse, param)) if (alps_get_status(psmouse, param))
...@@ -372,7 +372,7 @@ static int alps_reconnect(struct psmouse *psmouse) ...@@ -372,7 +372,7 @@ static int alps_reconnect(struct psmouse *psmouse)
return -1; return -1;
} }
if (priv->i->flags == ALPS_PASS && alps_passthrough_mode(psmouse, 0)) if ((priv->i->flags & ALPS_PASS) && alps_passthrough_mode(psmouse, 0))
return -1; return -1;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment