projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33a841c
)
Input: matrix_keypad - use flush_delayed_work()
author
Dmitry Torokhov
<
[email protected]
>
Thu, 7 Feb 2019 22:39:40 +0000
(14:39 -0800)
committer
Dmitry Torokhov
<
[email protected]
>
Sat, 9 Feb 2019 17:00:03 +0000
(09:00 -0800)
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 <
[email protected]
>
drivers/input/keyboard/matrix_keypad.c
patch
|
blob
|
history
diff --git
a/drivers/input/keyboard/matrix_keypad.c
b/drivers/input/keyboard/matrix_keypad.c
index 403452ef00e6f257d67ca44bdf5626b0e5cc53a4..3d1cb7bf5e35feba1b355cef7e81c657db97be07 100644
(file)
--- a/
drivers/input/keyboard/matrix_keypad.c
+++ b/
drivers/input/keyboard/matrix_keypad.c
@@
-222,7
+222,7
@@
static void matrix_keypad_stop(struct input_dev *dev)
keypad->stopped = true;
spin_unlock_irq(&keypad->lock);
- flush_
work(&keypad->work.
work);
+ flush_
delayed_work(&keypad->
work);
/*
* matrix_keypad_scan() will leave IRQs enabled;
* we should disable them now.