Skip to content

Commit

Permalink
Input: ALPS - fix forward/back buttons reversed on Acer 5520-5290
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Laszlo Kajan authored and Dmitry Torokhov committed Mar 18, 2008
1 parent 1db3a34 commit 3c00bb9
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 @@ -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) {
Expand Down

0 comments on commit 3c00bb9

Please sign in to comment.