Input: don't call input_dev_release_keys() in resume
authorAleksej Makarov <aleksej.makarov@sonymobile.com>
Sat, 23 Nov 2013 18:20:36 +0000 (10:20 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 16 Dec 2013 10:19:10 +0000 (02:19 -0800)
commit768d9aa55740754aa4efb8aca594e3841237dd88
treed3f3206b34ce83a96318e342e3fbfa196dba44a9
parentc2729850985934a3124319f8ff1d46d8c72bb012
Input: don't call input_dev_release_keys() in resume

When waking up the platform by pressing a specific key, sending a
release on that key makes it impossible to react on the event in
user-space. This is fixed by moving the input_reset_device() call to
resume instead.

[dmitry.torokhov@gmail.com: make sure we still restore LED/sound state
after resume, handle hibernation properly]

Signed-off-by: Aleksej Makarov <aleksej.makarov@sonymobile.com>
Signed-off-by: Oskar Andero <oskar.andero@sonymobile.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input.c