From b503dc026eb008e4ac95f36f17d278e7c69bad9d Mon Sep 17 00:00:00 2001
From: Gabor Juhos <juhosg@openwrt.org>
Date: Sun, 26 Jan 2014 14:55:32 +0000
Subject: [PATCH] ar71xx: wp543: set active_low flag for the buttons

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39400
---
 target/linux/ar71xx/files/arch/mips/ath79/mach-wp543.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wp543.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wp543.c
index 0c890ea97d..dc4aee0c1b 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wp543.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wp543.c
@@ -62,12 +62,14 @@ static struct gpio_keys_button wp543_gpio_keys[] __initdata = {
 		.code		= BTN_0,
 		.debounce_interval = WP543_KEYS_DEBOUNCE_INTERVAL,
 		.gpio		= WP543_GPIO_SW6,
+		.active_low	= 1,
 	}, {
 		.desc		= "sw4",
 		.type		= EV_KEY,
 		.code		= KEY_RESTART,
 		.debounce_interval = WP543_KEYS_DEBOUNCE_INTERVAL,
 		.gpio		= WP543_GPIO_SW4,
+		.active_low	= 1,
 	}
 };
 
-- 
GitLab