summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Donohue <linux-kernel@PaulSD.com>2017-01-03 10:39:28 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-03 12:33:10 -0800
commit47e3a5edc6538d66e470aaed3b7c57255cb37ca1 (patch)
treea31bdc5aa6937ecb38038e4944bc55a95b105676
parent72f0991354b24b9860ddc57b12d5c39bd8e3c962 (diff)
downloadlinux-47e3a5edc6538d66e470aaed3b7c57255cb37ca1.tar.gz
linux-47e3a5edc6538d66e470aaed3b7c57255cb37ca1.tar.bz2
linux-47e3a5edc6538d66e470aaed3b7c57255cb37ca1.zip
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: 23fce365c6a2 ("Input: ALPS - clean up code for SS5 hardware") Signed-off-by: Paul Donohue <linux-kernel@PaulSD.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/mouse/alps.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/alps.h b/drivers/input/mouse/alps.h
index cde6f4bd8ea2..6d279aa27cb9 100644
--- a/drivers/input/mouse/alps.h
+++ b/drivers/input/mouse/alps.h
@@ -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) \
)