Input: ALPS - fix forward/back buttons reversed on Acer 5520-5290
authorLaszlo Kajan <kajla@bioinfo.pl>
Tue, 18 Mar 2008 04:39:55 +0000 (00:39 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 18 Mar 2008 04:39:55 +0000 (00:39 -0400)
ALPS_FW_BK_1 protocol flavor seems to have forward and backward
keys reversed.

Signed-off-by: Laszlo Kajan <kajla@bioinfo.pl>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/alps.c

index 6e8da5eecb89fbd1ca553cdea65d080b657d0fa5..385e32bcf6a6e0ed7328f8c7ffd39badb7e4d45e 100644 (file)
@@ -116,8 +116,8 @@ static void alps_process_packet(struct psmouse *psmouse)
        }
 
        if (priv->i->flags & ALPS_FW_BK_1) {
-               back = packet[2] & 4;
-               forward = packet[0] & 0x10;
+               back = packet[0] & 0x10;
+               forward = packet[2] & 4;
        }
 
        if (priv->i->flags & ALPS_FW_BK_2) {