Input: fix used slots detection breakage
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 25 Aug 2014 18:31:02 +0000 (11:31 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 25 Aug 2014 21:59:48 +0000 (14:59 -0700)
commit8ff21f44fa70d363477b63646847f8d08c0e20a2
tree8983acbc513f87c6c2aebc294538bbd10dd78afe
parentfb92be7ba8ca6be57b6595d2cb2d30a53b39417d
Input: fix used slots detection breakage

Commit f8ec894945e7d205ce62be59e55e72c4304e4739 allowed external callers
use slot dropping logic, unfortunately it also broke external users of
input_mt_is_used() as we stopped incrementing frame count unless input
device was set up to automatically drop unused slots.

Fixes: f8ec894945e7d ("Input: MT - make slot cleanup callable outside
mt_sync_frame()")
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=83081

Reported-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
Tested-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
Reviewed-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input-mt.c