ar71xx: fix polarity of GPIO buttons on the WNDR3700 board
authorGabor Juhos <juhosg@openwrt.org>
Fri, 19 Feb 2010 11:52:15 +0000 (11:52 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 19 Feb 2010 11:52:15 +0000 (11:52 +0000)
Signed-off-by: Scott Dudley <spmsink@hotmail.com>
SVN-Revision: 19743

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

index eaa9654aaab5e77ec20f1ee22819c33e780f92a9..c625fc980aeebf313b9bb9ffed698fb248fb80d2 100644 (file)
@@ -128,18 +128,21 @@ static struct gpio_button wndr3700_gpio_buttons[] __initdata = {
                .code           = BTN_0,
                .threshold      = 3,
                .gpio           = WNDR3700_GPIO_BTN_RESET,
+               .active_low     = 1,
        }, {
                .desc           = "wps",
                .type           = EV_KEY,
                .code           = BTN_1,
                .threshold      = 3,
                .gpio           = WNDR3700_GPIO_BTN_WPS,
+               .active_low     = 1,
        } , {
                .desc           = "wifi",
                .type           = EV_KEY,
                .code           = BTN_2,
                .threshold      = 3,
                .gpio           = WNDR3700_GPIO_BTN_WIFI,
+               .active_low     = 1,
        }
 };