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-Url: https://git.stricted.de/?a=commitdiff_plain;h=99d9996c5c3b47c14c8717c7dd4692a25b83b3f7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 f16fe7c7d215..5026600278d3 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);