Skip to content

Commit 9c71b2c

Browse files
palidtor
authored andcommitted
Input: alps - fix reporting pressure of v3 trackstick
According to documentation, all 7 lower bits represents trackpoint pressure. Fixes: 4621c96 ("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>
1 parent 6bd6ae6 commit 9c71b2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/input/mouse/alps.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ static void alps_process_trackstick_packet_v3(struct psmouse *psmouse)
583583

584584
x = (s8)(((packet[0] & 0x20) << 2) | (packet[1] & 0x7f));
585585
y = (s8)(((packet[0] & 0x10) << 3) | (packet[2] & 0x7f));
586-
z = packet[4] & 0x7c;
586+
z = packet[4] & 0x7f;
587587

588588
/*
589589
* The x and y values tend to be quite large, and when used

0 commit comments

Comments
 (0)