find7a: fix qpnp_charger.c #ifndef

Change-Id: I81016dad1e850c01a4418dc0b894ea86bace157b
Revert "input: powerkey: don't send dummy release event"

This is obsoleted by Sony's patch to mainline.

This reverts commit 2dcd454a6a743b5747c9b47a586a60c885bebe01.

Change-Id: I156b9f17fff9da34be49965b9bac061d704a6662
Revert "input: don't send dummy release event when system resumes"

This is obsoleted by Sony's patch to mainline.

This reverts commit 017fcfae316be75b2dcfdc6a35524b176a59b729.

Change-Id: I80fd68bf77de36b6ca3bbb2fc3157747ed7157f3
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]

Change-Id: Ia26aec2d70e7d0996806edcd47dfa419a2e1889a
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>
input: Don't send a SYN_REPORT if we didn't release any keys

Currently release_keys pushes a SYN_REPORT event up to userspace
whenever it is called on an input device, even if it did not send
any release events to SYN_REPORT.  Don't send the SYN_REPORT
if we don't have anything to report in order to prevent
a wakelock in evdev.c and time spent by EventHub processing the
event.

Change-Id: I265d2ea60c187fa6f38e800dc8dd0d49fed184c8