ar71xx: fix TP-LINK TL-WDR3600/4300 RFKILL switch positions
authorJohn Crispin <john@openwrt.org>
Sun, 15 Mar 2015 19:39:47 +0000 (19:39 +0000)
committerJohn Crispin <john@openwrt.org>
Sun, 15 Mar 2015 19:39:47 +0000 (19:39 +0000)
While the switch positions aren't explicitly labeled as on and off, we've heard
complaints about them being wrong. This patch changes the handling to match the
stock firmware.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
SVN-Revision: 44795

target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr4300.c

index 99ae80df9b403f0b75d1f7de32645ed8f32ffe83..3afc7146203fc1509790e36dfdf7084a9b719e45 100644 (file)
@@ -103,6 +103,7 @@ static struct gpio_keys_button wdr4300_gpio_keys[] __initdata = {
                .code           = KEY_RFKILL,
                .debounce_interval = WDR4300_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = WDR4300_GPIO_BTN_RFKILL,
+               .active_low     = 1,
        },
 };