projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e107b8e
)
Input: alps - fix old protocol decoding
author
Yotam Medini
<yotam.medini@gmail.com>
Tue, 30 May 2006 03:30:36 +0000
(23:30 -0400)
committer
Dmitry Torokhov
<dtor_core@ameritech.net>
Tue, 30 May 2006 03:30:36 +0000
(23:30 -0400)
Correct touchpad left & right keys assignments for ALPS_OLDPROTO
that were swapped. Old protocol is used on UMAX ActionBook-530T
notebook.
Signed-off-by: Yotam Medini <yotam.medini@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/alps.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/input/mouse/alps.c
b/drivers/input/mouse/alps.c
index 2141501e9f2e498246df66233623490ade12494a..a0e2e797c6d5a6c9e3cceeb6659a9299630c5af5 100644
(file)
--- a/
drivers/input/mouse/alps.c
+++ b/
drivers/input/mouse/alps.c
@@
-100,8
+100,8
@@
static void alps_process_packet(struct psmouse *psmouse, struct pt_regs *regs)
}
if (priv->i->flags & ALPS_OLDPROTO) {
- left = packet[2] & 0x
08
;
- right = packet[2] & 0x
10
;
+ left = packet[2] & 0x
10
;
+ right = packet[2] & 0x
08
;
middle = 0;
x = packet[1] | ((packet[0] & 0x07) << 7);
y = packet[4] | ((packet[3] & 0x07) << 7);