Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47e3a5ed authored by Paul Donohue's avatar Paul Donohue Committed by Dmitry Torokhov
Browse files

Input: ALPS - fix TrackStick Y axis handling for SS5 hardware



A minus character was lost in commit 23fce365, causing the Y axis to be
inverted for SS5 TrackStick events.  (Pushing the TrackStick up caused
the pointer to move down, and vice versa.)  Restore the lost minus.

Fixes: 23fce365 ("Input: ALPS - clean up code for SS5 hardware")
Signed-off-by: default avatarPaul Donohue <linux-kernel@PaulSD.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 72f09913
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -114,7 +114,7 @@ enum SS4_PACKET_ID {
				 (_b[1] & 0x7F)		\
				)

#define SS4_TS_Y_V2(_b)		(s8)(				\
#define SS4_TS_Y_V2(_b)		-(s8)(				\
				 ((_b[3] & 0x01) << 7) |	\
				 (_b[2] & 0x7F)		\
				)