ar71xx: fix tl-wa901nd buttons code
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / files / arch / mips / ath79 / mach-tl-wa901nd.c
index 45e8f1287accfcfe22650c0b34a1fa89808c59ad..957b92cba64361c6ce2f51962c2e222c6643b431 100644 (file)
@@ -61,14 +61,14 @@ static struct gpio_keys_button tl_wa901nd_gpio_keys[] __initdata = {
        {
                .desc           = "reset",
                .type           = EV_KEY,
-               .code           = BTN_0,
+               .code           = KEY_RESTART,
                .debounce_interval = TL_WA901ND_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = TL_WA901ND_GPIO_BTN_RESET,
                .active_low     = 1,
        }, {
                .desc           = "qss",
                .type           = EV_KEY,
-               .code           = BTN_1,
+               .code           = KEY_WPS_BUTTON,
                .debounce_interval = TL_WA901ND_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = TL_WA901ND_GPIO_BTN_QSS,
                .active_low     = 1,