ar71xx: fix button polarity on TL-WR703N and TL-WR741N v4
authorGabor Juhos <juhosg@openwrt.org>
Tue, 27 Mar 2012 19:37:51 +0000 (19:37 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 27 Mar 2012 19:37:51 +0000 (19:37 +0000)
SVN-Revision: 31102

target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr703n.c
target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr741nd-v4.c

index badc35af151d624213ae7fedd8201d9953887249..c61a16c99b9e47660cf04f663e32a27d5445f7b5 100644 (file)
@@ -53,7 +53,7 @@ static struct gpio_keys_button tl_wr703n_gpio_keys[] __initdata = {
                .code           = KEY_RESTART,
                .debounce_interval = TL_WR703N_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = TL_WR703N_GPIO_BTN_RESET,
-               .active_low     = 1,
+               .active_low     = 0,
        }
 };
 
index b8ccdfd60e7b30acf5f98abebc64bb739f06c812..214429cd54b3a515873a0e3355aca80e4f8e3b4a 100644 (file)
@@ -89,14 +89,14 @@ static struct gpio_keys_button tl_wr741ndv4_gpio_keys[] __initdata = {
                .code           = KEY_RESTART,
                .debounce_interval = TL_WR741NDV4_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = TL_WR741NDV4_GPIO_BTN_RESET,
-               .active_low     = 1,
+               .active_low     = 0,
        }, {
                .desc           = "WPS",
                .type           = EV_KEY,
                .code           = KEY_WPS_BUTTON,
                .debounce_interval = TL_WR741NDV4_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = TL_WR741NDV4_GPIO_BTN_WPS,
-               .active_low     = 1,
+               .active_low     = 0,
        }
 };