ar71xx: TEW632BRP has buttons 'active low', fix board config
[openwrt/staging/yousong.git] / target / linux / ar71xx / files / arch / mips / ath79 / mach-tew-632brp.c
index b76d4a7a00d3622c0342b8e2c2585ac5809c9254..855664e562a29cc4188189165c8d165d644a9bd5 100644 (file)
@@ -54,12 +54,14 @@ static struct gpio_keys_button tew_632brp_gpio_keys[] __initdata = {
                .code           = KEY_RESTART,
                .debounce_interval = TEW_632BRP_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = TEW_632BRP_GPIO_BTN_RESET,
+               .active_low     = 1,
        }, {
                .desc           = "wps",
                .type           = EV_KEY,
                .code           = KEY_WPS_BUTTON,
                .debounce_interval = TEW_632BRP_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = TEW_632BRP_GPIO_BTN_WPS,
+               .active_low     = 1,
        }
 };