]> git.baikalelectronics.ru Git - kernel.git/commit
Input: gpio-keys - add shutdown callback
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 6 Feb 2019 00:44:07 +0000 (16:44 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 6 Feb 2019 17:59:24 +0000 (09:59 -0800)
commit836623773dd83db2b27d5761f7fcb5eb47b301ff
treee861ac02986e62e94247049cc167c06a0fa78400
parentc7b4873408dcdbb8149e3b41894b8b66582fc02a
Input: gpio-keys - add shutdown callback

On some platforms (e.g.: ARCH_BRCMSTB) it is possible to enter
"poweroff" while leaving some wake-up sources enabled such as key
presses in order to allow for the system to wake-up.

Wire up a .shutdown() callback which calls into the existing
gpio_keys_suspend() since the logic is essentially the same.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/gpio_keys.c