]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit97ad49d528c5960624fa8dec3e8952fdac0820e3
tree8983acbc513f87c6c2aebc294538bbd10dd78afe
parent628a247f3cab58a8369e901f8c1aa376f8c5b59e
Input: fix used slots detection breakage

Commit 4b3dbdd1142770d1be0e8deea35d89ef20c13ff3 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: 4b3dbdd114277 ("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