ar71xx: fix ZyXEL NBG6616 wifi switch
[openwrt/staging/wigyori.git] / target / linux / ar71xx / files / arch / mips / ath79 / mach-nbg6716.c
index 1c08e53f15529c689adae00fed5544c40157ed07..b0fbb78d8274c8d93ee84da261e135657cbb2991 100644 (file)
@@ -203,11 +203,11 @@ static struct gpio_keys_button nbg6616_gpio_keys[] __initdata = {
        },
        {
                .desc           = "RFKILL button",
-               .type           = EV_KEY,
+               .type           = EV_SW,
                .code           = KEY_RFKILL,
                .debounce_interval = NBG6716_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = NBG6716_GPIO_BTN_RFKILL,
-               .active_low     = 1,
+               .active_low     = 0,
        },
        {
                .desc           = "WPS button",