Input: do not emit unneeded EV_SYN when suspending
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 7 Aug 2015 02:15:30 +0000 (19:15 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 7 Aug 2015 21:55:38 +0000 (14:55 -0700)
commit00159f19a5057cb779146afce1cceede692af346
tree088387908b23ecf425fde41f80720823598488fe
parent6fd3850227961d70594acd45d146ad28367415b5
Input: do not emit unneeded EV_SYN when suspending

Do not emit EV_SYN/SYN_REPORT on suspend if there were no keys that are
still pressed as we are suspending the device (and in all other cases when
input core is forcibly releasing keys via input_dev_release_keys() call).

Reviewed-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input.c