fix gpio button key code, match button-hotplug code

SVN-Revision: 21253
This commit is contained in:
Raphaël Huck 2010-04-29 12:51:02 +00:00
parent 5af6e7724b
commit b29ef93886
6 changed files with 16 additions and 16 deletions

View file

@ -19,7 +19,7 @@
+ .gpio = 32, + .gpio = 32,
+ .active_low = 1, + .active_low = 1,
+ .type = EV_KEY, + .type = EV_KEY,
+ .code = BTN_0, + .code = KEY_RESTART,
+ .threshold = 3, + .threshold = 3,
+ }, + },
+ }, + },
@ -36,7 +36,7 @@
+ .gpio = 36, + .gpio = 36,
+ .active_low = 1, + .active_low = 1,
+ .type = EV_KEY, + .type = EV_KEY,
+ .code = BTN_0, + .code = KEY_RESTART,
+ .threshold = 3, + .threshold = 3,
+ }, + },
+ }, + },

View file

@ -56,7 +56,7 @@
+ .gpio = 37, + .gpio = 37,
+ .active_low = 1, + .active_low = 1,
+ .type = EV_KEY, + .type = EV_KEY,
+ .code = BTN_0, + .code = KEY_RESTART,
+ .threshold = 3, + .threshold = 3,
+ }, + },
+ }, + },

View file

@ -123,7 +123,7 @@
+ .gpio = 34, + .gpio = 34,
+ .active_low = 1, + .active_low = 1,
+ .type = EV_KEY, + .type = EV_KEY,
+ .code = BTN_0, + .code = KEY_RESTART,
+ .threshold = 3, + .threshold = 3,
+ }, + },
+ }, + },
@ -209,7 +209,7 @@
+ .gpio = 34, + .gpio = 34,
+ .active_low = 1, + .active_low = 1,
+ .type = EV_KEY, + .type = EV_KEY,
+ .code = BTN_0, + .code = KEY_RESTART,
+ .threshold = 3, + .threshold = 3,
+ }, + },
+ }, + },
@ -293,7 +293,7 @@
+ .gpio = 34, + .gpio = 34,
+ .active_low = 1, + .active_low = 1,
+ .type = EV_KEY, + .type = EV_KEY,
+ .code = BTN_0, + .code = KEY_RESTART,
+ .threshold = 3, + .threshold = 3,
+ }, + },
+ }, + },
@ -374,7 +374,7 @@
+ .gpio = 34, + .gpio = 34,
+ .active_low = 1, + .active_low = 1,
+ .type = EV_KEY, + .type = EV_KEY,
+ .code = BTN_0, + .code = KEY_RESTART,
+ .threshold = 3, + .threshold = 3,
+ }, + },
+ }, + },
@ -453,7 +453,7 @@
+ .gpio = 34, + .gpio = 34,
+ .active_low = 1, + .active_low = 1,
+ .type = EV_KEY, + .type = EV_KEY,
+ .code = BTN_0, + .code = KEY_RESTART,
+ .threshold = 3, + .threshold = 3,
+ }, + },
+ }, + },

View file

@ -19,7 +19,7 @@
+ .gpio = 32, + .gpio = 32,
+ .active_low = 1, + .active_low = 1,
+ .type = EV_KEY, + .type = EV_KEY,
+ .code = BTN_0, + .code = KEY_RESTART,
+ .threshold = 3, + .threshold = 3,
+ }, + },
+ }, + },
@ -36,7 +36,7 @@
+ .gpio = 36, + .gpio = 36,
+ .active_low = 1, + .active_low = 1,
+ .type = EV_KEY, + .type = EV_KEY,
+ .code = BTN_0, + .code = KEY_RESTART,
+ .threshold = 3, + .threshold = 3,
+ }, + },
+ }, + },

View file

@ -56,7 +56,7 @@
+ .gpio = 37, + .gpio = 37,
+ .active_low = 1, + .active_low = 1,
+ .type = EV_KEY, + .type = EV_KEY,
+ .code = BTN_0, + .code = KEY_RESTART,
+ .threshold = 3, + .threshold = 3,
+ }, + },
+ }, + },

View file

@ -123,7 +123,7 @@
+ .gpio = 34, + .gpio = 34,
+ .active_low = 1, + .active_low = 1,
+ .type = EV_KEY, + .type = EV_KEY,
+ .code = BTN_0, + .code = KEY_RESTART,
+ .threshold = 3, + .threshold = 3,
+ }, + },
+ }, + },
@ -209,7 +209,7 @@
+ .gpio = 34, + .gpio = 34,
+ .active_low = 1, + .active_low = 1,
+ .type = EV_KEY, + .type = EV_KEY,
+ .code = BTN_0, + .code = KEY_RESTART,
+ .threshold = 3, + .threshold = 3,
+ }, + },
+ }, + },
@ -293,7 +293,7 @@
+ .gpio = 34, + .gpio = 34,
+ .active_low = 1, + .active_low = 1,
+ .type = EV_KEY, + .type = EV_KEY,
+ .code = BTN_0, + .code = KEY_RESTART,
+ .threshold = 3, + .threshold = 3,
+ }, + },
+ }, + },
@ -374,7 +374,7 @@
+ .gpio = 34, + .gpio = 34,
+ .active_low = 1, + .active_low = 1,
+ .type = EV_KEY, + .type = EV_KEY,
+ .code = BTN_0, + .code = KEY_RESTART,
+ .threshold = 3, + .threshold = 3,
+ }, + },
+ }, + },
@ -453,7 +453,7 @@
+ .gpio = 34, + .gpio = 34,
+ .active_low = 1, + .active_low = 1,
+ .type = EV_KEY, + .type = EV_KEY,
+ .code = BTN_0, + .code = KEY_RESTART,
+ .threshold = 3, + .threshold = 3,
+ }, + },
+ }, + },