Input: matrix_keypad - use flush_delayed_work()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 7 Feb 2019 22:39:40 +0000 (14:39 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 9 Feb 2019 17:00:03 +0000 (09:00 -0800)
commita342083abe576db43594a32d458a61fa81f7cb32
tree859aad5f0f0588e50435201c35669d7fa215ecf0
parent33a841ce5cef4ca6c18ad333248b6d273f54c839
Input: matrix_keypad - use flush_delayed_work()

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>
drivers/input/keyboard/matrix_keypad.c