Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Laszlo Kajan and committed by
Dmitry Torokhov
3c00bb96 1db3a345

+2 -2
+2 -2
drivers/input/mouse/alps.c
··· 116 116 } 117 117 118 118 if (priv->i->flags & ALPS_FW_BK_1) { 119 - back = packet[2] & 4; 120 - forward = packet[0] & 0x10; 119 + back = packet[0] & 0x10; 120 + forward = packet[2] & 4; 121 121 } 122 122 123 123 if (priv->i->flags & ALPS_FW_BK_2) {