Input: snvs_pwrkey - use dev_pm_set_wake_irq() to simplify code
authorAnson Huang <anson.huang@nxp.com>
Wed, 3 Apr 2019 22:15:44 +0000 (15:15 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 4 Apr 2019 18:51:28 +0000 (11:51 -0700)
commitfb3c09ba20fff0fb7c5a6bcb2091dc62b6cce5e0
treec8a905e459ce437805c193f006ea6cfc7bf16388
parent24541dede9dbe0638c82ace2b072c08fd1ec786b
Input: snvs_pwrkey - use dev_pm_set_wake_irq() to simplify code

With calling dev_pm_set_wake_irq() to set SNVS ON/OFF button
as wakeup source for suspend, generic wake irq mechanism
will automatically enable it as wakeup source when suspend,
then the enable_irq_wake()/disable_irq_wake() can be removed
in suspend/resume callback, it simplifies the code.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/snvs_pwrkey.c