ar71xx: fix polarity of GPIO buttons on the WNDR3700 board
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / files / arch / mips / ar71xx / mach-ap81.c
index 1b0b06c7a78b3a9d6ab78d6696065aab4f49648f..6fa950f70d605c1694704735e893a4c82d92968b 100644 (file)
@@ -92,14 +92,14 @@ static struct gpio_button ap81_gpio_buttons[] __initdata = {
                .desc           = "sw1",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = AP81_GPIO_BTN_SW1,
                .active_low     = 1,
        } , {
                .desc           = "sw4",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = AP81_GPIO_BTN_SW4,
                .active_low     = 1,
        }
@@ -138,4 +138,4 @@ static void __init ap81_setup(void)
        ar913x_add_device_wmac(eeprom, NULL);
 }
 
-MIPS_MACHINE(AR71XX_MACH_AP81, "Atheros AP81", ap81_setup);
+MIPS_MACHINE(AR71XX_MACH_AP81, "AP81", "Atheros AP81", ap81_setup);