From: Hans de Goede Date: Sat, 26 Jul 2014 05:48:02 +0000 (-0700) Subject: Input: alps - report 2 touches when we've > 2 fingers X-Git-Tag: v5.15~74^2~967 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99d9996c5c3b47c14c8717c7dd4692a25b83b3f7;p=platform%2Fkernel%2Flinux-starfive.git Input: alps - report 2 touches when we've > 2 fingers If we detect more then 2 fingers report 2 touches, rather then only reporting the upper left corner of the bounding box. Signed-off-by: Hans de Goede Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/mouse/alps.c b/drivers/input/mouse/alps.c index f16fe7c..5026600 100644 --- a/drivers/input/mouse/alps.c +++ b/drivers/input/mouse/alps.c @@ -454,7 +454,7 @@ static void alps_report_semi_mt_data(struct psmouse *psmouse, int fingers) fingers = f->pressure > 0 ? 1 : 0; } - alps_report_mt_data(psmouse, (fingers <= 2) ? fingers : 1); + alps_report_mt_data(psmouse, (fingers <= 2) ? fingers : 2); input_mt_report_finger_count(dev, fingers);