aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/mouse/alps.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-07-25 22:48:02 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2014-07-26 14:03:18 -0700
commit99d9996c5c3b47c14c8717c7dd4692a25b83b3f7 (patch)
tree1f3cd43a057f3438af2965309c8eb81f462b5186 /drivers/input/mouse/alps.c
parent68c21870179d78ab7375da432e8dd753d4dc2ba0 (diff)
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 <hdegoede@redhat.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/alps.c')
-rw-r--r--drivers/input/mouse/alps.c2
1 files changed, 1 insertions, 1 deletions
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);