projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bd6ae6
)
Input: alps - fix reporting pressure of v3 trackstick
author
Pali Rohár
<pali.rohar@gmail.com>
Mon, 23 Apr 2018 23:25:58 +0000
(16:25 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Mon, 23 Apr 2018 23:38:16 +0000
(16:38 -0700)
According to documentation, all 7 lower bits represents trackpoint pressure.
Fixes:
4621c9660459
("Input: alps - report pressure of v3 and v7 trackstick")
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/alps.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/input/mouse/alps.c
b/drivers/input/mouse/alps.c
index 0a67f235ba88a7b6e25877a43b35488a31d8fdf5..38f9501acdf04c6127a45667e831c807e52be09b 100644
(file)
--- a/
drivers/input/mouse/alps.c
+++ b/
drivers/input/mouse/alps.c
@@
-583,7
+583,7
@@
static void alps_process_trackstick_packet_v3(struct psmouse *psmouse)
x = (s8)(((packet[0] & 0x20) << 2) | (packet[1] & 0x7f));
y = (s8)(((packet[0] & 0x10) << 3) | (packet[2] & 0x7f));
- z = packet[4] & 0x7
c
;
+ z = packet[4] & 0x7
f
;
/*
* The x and y values tend to be quite large, and when used