gpio-button-hotplug: add support for power buttons
authorJohn Crispin <john@openwrt.org>
Mon, 28 Oct 2013 13:45:57 +0000 (13:45 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 28 Oct 2013 13:45:57 +0000 (13:45 +0000)
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38557

package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c

index ea6f94ba433ecb547c17101a4713deee5e759b22..927f37dccf2f12cd251647d3879a2a811ee86432 100644 (file)
@@ -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"),