aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2018-09-11 17:04:16 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2018-09-22 19:26:26 +0200
commitcd02d4faf981bd4de0427cd23812b41192635d82 (patch)
tree5b35ccab9d34876e56ca78a5d4b73cc2cf3085f2 /target/linux
parentc6ecb83db41e3f05639c8c2a6b4edf2b96f1af57 (diff)
downloadupstream-cd02d4faf981bd4de0427cd23812b41192635d82.tar.gz
upstream-cd02d4faf981bd4de0427cd23812b41192635d82.tar.bz2
upstream-cd02d4faf981bd4de0427cd23812b41192635d82.zip
ar71xx: flag FritzBox 4020 buttons as active low
Buttons of AVM FritzBox 4020 are incorrectly flagged as active high. This was an oversight as RFKill button was working as expected even with incorrectly flagged GPIO. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-fritz4020.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-fritz4020.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-fritz4020.c
index ed7f9a8b3e..c00cf681b2 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-fritz4020.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-fritz4020.c
@@ -169,7 +169,7 @@ static struct gpio_keys_button fritz4020_gpio_keys[] __initdata = {
.code = KEY_RFKILL,
.debounce_interval = FRITZ4020_KEYS_DEBOUNCE_INTERVAL,
.gpio = FRITZ4020_GPIO_BTN_WLAN,
- .active_low = 0,
+ .active_low = 1,
},
{
.desc = "WPS button",
@@ -177,7 +177,7 @@ static struct gpio_keys_button fritz4020_gpio_keys[] __initdata = {
.code = KEY_WPS_BUTTON,
.debounce_interval = FRITZ4020_KEYS_DEBOUNCE_INTERVAL,
.gpio = FRITZ4020_GPIO_BTN_WPS,
- .active_low = 0,
+ .active_low = 1,
},
};