aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-10-28 13:45:57 +0000
committerJohn Crispin <blogic@openwrt.org>2013-10-28 13:45:57 +0000
commitd5aa1055f5a0c08c1f1ae181e1796e748081c082 (patch)
tree067a300286e24dbec349c1c64400d3472b1b453f /package
parent7d236f8e5dbb29d4842abd4a7d86592df0e58416 (diff)
downloadmaster-187ad058-d5aa1055f5a0c08c1f1ae181e1796e748081c082.tar.gz
master-187ad058-d5aa1055f5a0c08c1f1ae181e1796e748081c082.tar.bz2
master-187ad058-d5aa1055f5a0c08c1f1ae181e1796e748081c082.zip
gpio-button-hotplug: add support for power buttons
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38557 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-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"),