Input: gpio-keys - add support for wakeup event action
authorJeffy Chen <jeffy.chen@rock-chips.com>
Fri, 9 Mar 2018 00:03:27 +0000 (16:03 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 Mar 2018 17:13:22 +0000 (10:13 -0700)
commit83fc580dcc2f0f36114477c4ac7adbe5c32329a3
tree848ad4e17ccb5afa3e056de894955b4b6efd28d2
parent7085123333e2ee2686086fc49bc3117bacd86105
Input: gpio-keys - add support for wakeup event action

Add support for specifying event actions to trigger wakeup when using
the gpio-keys input device as a wakeup source.

This would allow the device to configure when to wakeup the system. For
example a gpio-keys input device for pen insert, may only want to wakeup
the system when ejecting the pen.

Suggested-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/gpio-keys.txt
drivers/input/keyboard/gpio_keys.c
include/dt-bindings/input/gpio-keys.h [new file with mode: 0644]
include/linux/gpio_keys.h