Skip to contentSkip to conversation

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

PATCH Applied Paul Donohue 2 participants 2 messages Jan 3, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/input/mouse/alps.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/mouse/alps.h +1 -1
index cde6f4b..6d279aa 100644
@@ -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)		\
 				)
Signature · 1 line
2.9.3
maintainer Applied
#1 lore raw
Quoted 5 lines · Paul Donohue

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.

Applied, thank you.

Quoted 20 lines
---
 drivers/input/mouse/alps.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/mouse/alps.h +1 -1
index cde6f4b..6d279aa 100644
@@ -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)		\
 				)
Signature · 1 line
2.9.3
Signature · 1 line
Dmitry