From 0a0ed2c3ecc6c273f99459159c8f82e6505307a6 Mon Sep 17 00:00:00 2001 From: juhosg Date: Fri, 19 Feb 2010 11:52:15 +0000 Subject: [PATCH] ar71xx: fix polarity of GPIO buttons on the WNDR3700 board Signed-off-by: Scott Dudley git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19743 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c index eaa9654aa..c625fc980 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c @@ -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, } }; -- 2.20.1