mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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: Vojtech Pavlik <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
This commit is contained in:
parent
9ba5eaafa1
commit
b30dc120a7
1 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue