Input: twl4030-pwrbutton - report a wakeup_event on button press
authorNeilBrown <neilb@suse.de>
Mon, 30 Jul 2012 05:25:51 +0000 (22:25 -0700)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 2 Mar 2013 20:11:54 +0000 (22:11 +0200)
commitfe401e52eee7afecc52198a6851fee3cd775cbd8
treed280cd82b26b4c4cd9712c887ad1e30ff409db3e
parenta1a76def9b8abe34e44e003efdf376be654303ae
Input: twl4030-pwrbutton - report a wakeup_event on button press

As the power button causes a wake from suspend, we need to register
the event with the pm sustem to avoid racing with suspend.

As the input event is reported in the interrupt handler, as simple
pm_wakeup_event() is sufficient.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/twl4030-pwrbutton.c