Input: release pressed keys when resuming device
authorOliver Neukum <oliver@neukum.org>
Thu, 1 Jul 2010 16:01:50 +0000 (09:01 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 3 Jul 2010 20:13:23 +0000 (13:13 -0700)
commit866d7d7b4a4e1d502b136bcc8af605091fe4c7b5
tree770e175bfcea2de9156630c2c91611d8d4dad1b8
parent3eac5c7e44f35eb07f0ecb28ce60f15b2dda1932
Input: release pressed keys when resuming device

As the kernel has no way to know whether a key was released
while the system was asleep, keys need to be reported released
as the system is resumed, lest autorepeat set in.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/input.c