]> Git Repo - linux.git/commitdiff
Input: ALPS - fix trackstick button handling on V8 devices
authorMasaki Ota <[email protected]>
Fri, 17 Mar 2017 21:19:40 +0000 (14:19 -0700)
committerDmitry Torokhov <[email protected]>
Fri, 17 Mar 2017 21:25:04 +0000 (14:25 -0700)
Alps stick devices always have physical buttons, so we should not check
ALPS_BUTTONPAD flag to decide whether we should report them.

Fixes: 4777ac220c43 ("Input: ALPS - add touchstick support for SS5 hardware")
Signed-off-by: Masaki Ota <[email protected]>
Acked-by: Pali Rohar <[email protected]>
Tested-by: Paul Donohue <[email protected]>
Tested-by: Nick Fletcher <[email protected]>
Cc: [email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
drivers/input/mouse/alps.c

index 262d9b620fcf6ea20d5c3d579a8ca33b1609077c..f210e19ddba66b86312b09c6925c55ea9fc0fab7 100644 (file)
@@ -1282,10 +1282,8 @@ static int alps_decode_ss4_v2(struct alps_fields *f,
        /* handle buttons */
        if (pkt_id == SS4_PACKET_ID_STICK) {
                f->ts_left = !!(SS4_BTN_V2(p) & 0x01);
-               if (!(priv->flags & ALPS_BUTTONPAD)) {
-                       f->ts_right = !!(SS4_BTN_V2(p) & 0x02);
-                       f->ts_middle = !!(SS4_BTN_V2(p) & 0x04);
-               }
+               f->ts_right = !!(SS4_BTN_V2(p) & 0x02);
+               f->ts_middle = !!(SS4_BTN_V2(p) & 0x04);
        } else {
                f->left = !!(SS4_BTN_V2(p) & 0x01);
                if (!(priv->flags & ALPS_BUTTONPAD)) {
This page took 0.062645 seconds and 4 git commands to generate.