Browse Source

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 <[email protected]>
David Bauer 7 years ago
parent
commit
cd02d4faf9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      target/linux/ar71xx/files/arch/mips/ath79/mach-fritz4020.c

+ 2 - 2
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,
 		.code			= KEY_RFKILL,
 		.debounce_interval	= FRITZ4020_KEYS_DEBOUNCE_INTERVAL,
 		.debounce_interval	= FRITZ4020_KEYS_DEBOUNCE_INTERVAL,
 		.gpio			= FRITZ4020_GPIO_BTN_WLAN,
 		.gpio			= FRITZ4020_GPIO_BTN_WLAN,
-		.active_low		= 0,
+		.active_low		= 1,
 	},
 	},
 	{
 	{
 		.desc			= "WPS button",
 		.desc			= "WPS button",
@@ -177,7 +177,7 @@ static struct gpio_keys_button fritz4020_gpio_keys[] __initdata = {
 		.code			= KEY_WPS_BUTTON,
 		.code			= KEY_WPS_BUTTON,
 		.debounce_interval	= FRITZ4020_KEYS_DEBOUNCE_INTERVAL,
 		.debounce_interval	= FRITZ4020_KEYS_DEBOUNCE_INTERVAL,
 		.gpio			= FRITZ4020_GPIO_BTN_WPS,
 		.gpio			= FRITZ4020_GPIO_BTN_WPS,
-		.active_low		= 0,
+		.active_low		= 1,
 	},
 	},
 };
 };