Skip to content

Commit

Permalink
Input: ALPS - fix resume (for DualPoints)
Browse files Browse the repository at this point in the history
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: Vojtech Pavlik <vojtech@suse.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
David Moore authored and Dmitry Torokhov committed Jul 11, 2005
1 parent 9ba5eaa commit b30dc12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/input/mouse/alps.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ static int alps_reconnect(struct psmouse *psmouse)
if (!(priv->i = alps_get_model(psmouse, &version)))
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;

if (alps_get_status(psmouse, param))
Expand All @@ -372,7 +372,7 @@ static int alps_reconnect(struct psmouse *psmouse)
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 0;
Expand Down

0 comments on commit b30dc12

Please sign in to comment.