summaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse
diff options
context:
space:
mode:
authorLaszlo Kajan <kajla@bioinfo.pl>2008-03-18 05:39:55 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2008-03-18 05:39:55 +0100
commit3c00bb96497a9c1251359a1faf68dddbb8d50a23 (patch)
tree31a926e9dbd9761e3f69a1cd93b9581a65a0d254 /drivers/input/mouse
parentInput: ALPS - put secondary device in proper place in sysfs (diff)
downloadlinux-3c00bb96497a9c1251359a1faf68dddbb8d50a23.tar.xz
linux-3c00bb96497a9c1251359a1faf68dddbb8d50a23.zip
Input: ALPS - fix forward/back buttons reversed on Acer 5520-5290
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>
Diffstat (limited to 'drivers/input/mouse')
-rw-r--r--drivers/input/mouse/alps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/mouse/alps.c b/drivers/input/mouse/alps.c
index 6e8da5eecb89..385e32bcf6a6 100644
--- a/drivers/input/mouse/alps.c
+++ b/drivers/input/mouse/alps.c
@@ -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) {