Messages in this thread Patch in this message | | | Date | Mon, 25 Jul 2005 00:35:04 -0500 | From | Dmitry Torokhov <> | Subject | [patch 15/24] ALPS: Fix resume for DualPoints |
| |
From: David Moore <dcm@MIT.EDU>
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 <vojtech@suse.cz> Signed-off-by: Dmitry Torokhov <dtor@mail.ru> ---
drivers/input/mouse/alps.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Index: work/drivers/input/mouse/alps.c =================================================================== --- work.orig/drivers/input/mouse/alps.c +++ work/drivers/input/mouse/alps.c @@ -358,7 +358,7 @@ static int alps_reconnect(struct 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 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; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |