aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2014-01-26 14:55:32 +0000
committerGabor Juhos <juhosg@openwrt.org>2014-01-26 14:55:32 +0000
commit6ffca5f8abaec8c3e2b2e9f1535c8fa0a36da9e2 (patch)
tree602ce569d49f2864c4153852b186c3941362aac2
parentae7072b9ff7ce90a4bb2e049083a01bda5a01788 (diff)
downloadupstream-6ffca5f8abaec8c3e2b2e9f1535c8fa0a36da9e2.tar.gz
upstream-6ffca5f8abaec8c3e2b2e9f1535c8fa0a36da9e2.tar.bz2
upstream-6ffca5f8abaec8c3e2b2e9f1535c8fa0a36da9e2.zip
ar71xx: wp543: set active_low flag for the buttons
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39400 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-wp543.c2
1 files changed, 2 insertions, 0 deletions
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,
}
};