]> 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)
commit753a6fe77345c49c471bab5626171a0011c219a4
tree8983acbc513f87c6c2aebc294538bbd10dd78afe
parenta7a983d6bb710c4d2ab1d66e7db1e0c4dcb304ad
Input: fix used slots detection breakage

Commit 5da5fceca03d99dca7fb2e9017702e037523595d 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: 5da5fceca03d9 ("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