Browse Source

gpio-button-hotplug: add support for power buttons

Signed-off-by: John Crispin <[email protected]>

SVN-Revision: 38557
John Crispin 12 years ago
parent
commit
14457da13f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c

+ 1 - 0
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"),