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)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 22 Aug 2012 05:29:48 +0000 (22:29 -0700)
commit112b51cfa21714d001e5b3e3f7c1f13146906a5d
treeb2f96402abbe2a3e219e70a89c25a78af4d0d873
parent2fba26c6595e4c1c64a74dad30f71c09708ff59a
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