Input: matrix_keypad - use flush_delayed_work()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 7 Feb 2019 22:39:40 +0000 (14:39 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 13:35:12 +0000 (14:35 +0100)
commitb735f5718e618f6db98564e482e2224125562ab5
tree61a7ec1a7dfe027fbca1ab18f4cc350030152cb4
parentfd922f641e5c452931f86c887fd32ba883b3233c
Input: matrix_keypad - use flush_delayed_work()

[ Upstream commit a342083abe576db43594a32d458a61fa81f7cb32 ]

We should be using flush_delayed_work() instead of flush_work() in
matrix_keypad_stop() to ensure that we are not missing work that is
scheduled but not yet put in the workqueue (i.e. its delay timer has not
expired yet).

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/keyboard/matrix_keypad.c