[OpenWrt-Devel] [PATCH] ar71xx: dir-505: fix reset button gpio active_low value

Rocco Folino rocco at devzen.net
Wed Feb 4 04:21:08 EST 2015


Fix 'active_low' default value for the reset button on DIR-505.

Signed-off-by: Rocco Folino <rocco at devzen.net>
---
 target/linux/ar71xx/files/arch/mips/ath79/mach-dir-505-a1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-505-a1.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-505-a1.c
index d3914659ef8f..1367b64a8f46 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-505-a1.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-dir-505-a1.c
@@ -59,7 +59,7 @@ static struct gpio_keys_button dir_505_a1_gpio_keys[] __initdata = {
 		.code		= KEY_RESTART,
 		.debounce_interval = DIR_505A1_KEYS_DEBOUNCE_INTERVAL,
 		.gpio		= DIR_505A1_GPIO_BTN_RESET,
-		.active_low	= 1,
+		.active_low	= 0,
 	}, {
 		.desc		= "WPS button",
 		.type		= EV_KEY,
-- 
2.1.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list