aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/gpio-button-hotplug
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-10-28 13:45:57 +0000
committerJohn Crispin <john@openwrt.org>2013-10-28 13:45:57 +0000
commit14457da13f7a96daae8e3eec4da7fd45133f08ad (patch)
treec4d6ad2d95d314b835829119ff6409dd54e236f2 /package/kernel/gpio-button-hotplug
parent7f1463623fb9964e2b8e17a0bf07a09c5dad4164 (diff)
downloadupstream-14457da13f7a96daae8e3eec4da7fd45133f08ad.tar.gz
upstream-14457da13f7a96daae8e3eec4da7fd45133f08ad.tar.bz2
upstream-14457da13f7a96daae8e3eec4da7fd45133f08ad.zip
gpio-button-hotplug: add support for power buttons
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38557
Diffstat (limited to 'package/kernel/gpio-button-hotplug')
-rw-r--r--package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c
index ea6f94ba43..927f37dccf 100644
--- a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c
+++ b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c
@@ -90,6 +90,7 @@ static struct bh_map button_map[] = {
BH_MAP(BTN_7, "BTN_7"),
BH_MAP(BTN_8, "BTN_8"),
BH_MAP(BTN_9, "BTN_9"),
+ BH_MAP(KEY_POWER, "power"),
BH_MAP(KEY_RESTART, "reset"),
BH_MAP(KEY_RFKILL, "rfkill"),
BH_MAP(KEY_WPS_BUTTON, "wps"),