ar71xx: use the button for WPS control on the DB120
authorGabor Juhos <juhosg@openwrt.org>
Sat, 12 Nov 2011 12:50:20 +0000 (12:50 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sat, 12 Nov 2011 12:50:20 +0000 (12:50 +0000)
SVN-Revision: 28990

target/linux/ar71xx/files/arch/mips/ar71xx/mach-db120.c

index d1860689d01b47b3e55fb7ccfb100a222dd489a4..c4a25322c1217efa9b88eb16622d7b327472a26f 100644 (file)
@@ -28,7 +28,7 @@
 #define DB120_GPIO_LED_STATUS  14
 #define DB120_GPIO_LED_WPS     15
 
-#define DB120_GPIO_BTN_SW1     16
+#define DB120_GPIO_BTN_WPS     16
 
 #define DB120_MAC0_OFFSET      0
 #define DB120_MAC1_OFFSET      6
@@ -103,11 +103,11 @@ static struct gpio_led db120_leds_gpio[] __initdata = {
 
 static struct gpio_keys_button db120_gpio_keys[] __initdata = {
        {
-               .desc           = "sw1",
+               .desc           = "WPS button",
                .type           = EV_KEY,
-               .code           = BTN_0,
+               .code           = KEY_WPS_BUTTON,
                .debounce_interval = DB120_KEYS_DEBOUNCE_INTERVAL,
-               .gpio           = DB120_GPIO_BTN_SW1,
+               .gpio           = DB120_GPIO_BTN_WPS,
                .active_low     = 1,
        }
 };