ar71xx: use KEY_RESTART and KEY_WPS_BUTTON code for the appropriate buttons
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / files / arch / mips / ar71xx / mach-tl-wr1043nd.c
index 3b7b764c227060559499c730e244f89f2d413f9d..b1e203859c14b60edce8d0e78b1df9d9e1da00a3 100644 (file)
@@ -94,14 +94,14 @@ static struct gpio_button tl_wr1043nd_gpio_buttons[] __initdata = {
        {
                .desc           = "reset",
                .type           = EV_KEY,
-               .code           = BTN_0,
+               .code           = KEY_RESTART,
                .threshold      = 3,
                .gpio           = TL_WR1043ND_GPIO_BTN_RESET,
                .active_low     = 1,
        }, {
                .desc           = "qss",
                .type           = EV_KEY,
-               .code           = BTN_1,
+               .code           = KEY_WPS_BUTTON,
                .threshold      = 3,
                .gpio           = TL_WR1043ND_GPIO_BTN_QSS,
                .active_low     = 1,