fix gpio button key code, match button-hotplug code
authorRaphaël Huck <rhk@cksum.org>
Thu, 29 Apr 2010 12:51:02 +0000 (12:51 +0000)
committerRaphaël Huck <rhk@cksum.org>
Thu, 29 Apr 2010 12:51:02 +0000 (12:51 +0000)
SVN-Revision: 21253

target/linux/brcm63xx/patches-2.6.32/100-reset_buttons.patch
target/linux/brcm63xx/patches-2.6.32/150-alice_gate2_leds.patch
target/linux/brcm63xx/patches-2.6.32/221-board-NB4.patch
target/linux/brcm63xx/patches-2.6.33/100-reset_buttons.patch
target/linux/brcm63xx/patches-2.6.33/150-alice_gate2_leds.patch
target/linux/brcm63xx/patches-2.6.33/221-board-NB4.patch

index 71d8e4741fe2dc07540c781086212e5495b5db06..7b8501e9e4a3e285f38e2c00d84065620a92741e 100644 (file)
@@ -19,7 +19,7 @@
 +                      .gpio           = 32,
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
-+                      .code           = BTN_0,
++                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
 +      },
@@ -36,7 +36,7 @@
 +                      .gpio           = 36,
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
-+                      .code           = BTN_0,
++                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
 +      },
index 10a7fd921246da8014d0427239ae412e2096b9fe..7b3f9ff5a97b1c4a5fbcd9478d58dcd6ec3e862c 100644 (file)
@@ -56,7 +56,7 @@
 +                      .gpio           = 37,
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
-+                      .code           = BTN_0,
++                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
 +      },
index 6e58b5f726a4259f333796cbab6d6218e3a45960..57ce7fc8d90f21ff88badb239b97ee8b2eee4c0a 100644 (file)
 +                      .gpio           = 34,
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
-+                      .code           = BTN_0,
++                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
 +      },
 +                      .gpio           = 34,
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
-+                      .code           = BTN_0,
++                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
 +      },
 +                      .gpio           = 34,
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
-+                      .code           = BTN_0,
++                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
 +      },
 +                      .gpio           = 34,
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
-+                      .code           = BTN_0,
++                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
 +      },
 +                      .gpio           = 34,
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
-+                      .code           = BTN_0,
++                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
 +      },
index 292e0a7cc94aa5bce8ebe06d60d6cb348b941690..02b4149ddd2bdeead899606f79b98ddc5ee1a3cc 100644 (file)
@@ -19,7 +19,7 @@
 +                      .gpio           = 32,
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
-+                      .code           = BTN_0,
++                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
 +      },
@@ -36,7 +36,7 @@
 +                      .gpio           = 36,
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
-+                      .code           = BTN_0,
++                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
 +      },
index 7795f99efd14b660044059d8573bcdd10ef82696..8e53a60e4b30fabbf2eaafbd6cba0f8fb8caf309 100644 (file)
@@ -56,7 +56,7 @@
 +                      .gpio           = 37,
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
-+                      .code           = BTN_0,
++                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
 +      },
index 6e58b5f726a4259f333796cbab6d6218e3a45960..57ce7fc8d90f21ff88badb239b97ee8b2eee4c0a 100644 (file)
 +                      .gpio           = 34,
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
-+                      .code           = BTN_0,
++                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
 +      },
 +                      .gpio           = 34,
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
-+                      .code           = BTN_0,
++                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
 +      },
 +                      .gpio           = 34,
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
-+                      .code           = BTN_0,
++                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
 +      },
 +                      .gpio           = 34,
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
-+                      .code           = BTN_0,
++                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
 +      },
 +                      .gpio           = 34,
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
-+                      .code           = BTN_0,
++                      .code           = KEY_RESTART,
 +                      .threshold      = 3,
 +              },
 +      },