ramips: use KEY_RESTART and KEY_WPS_BUTTON code for the appropriate buttons
[openwrt-github/.git] / target / linux / ramips / files / arch / mips / ralink / rt288x / mach-rt-n15.c
index 1a869afacf62925d407ed7324e49f5ddd8e2db18..05ea79bff96eb76deeff9a26a6ad49f4763a2f62 100644 (file)
@@ -84,14 +84,14 @@ static struct gpio_button rt_n15_gpio_buttons[] __initdata = {
        {
                .desc           = "reset",
                .type           = EV_KEY,
-               .code           = BTN_0,
+               .code           = KEY_RESTART,
                .threshold      = 3,
                .gpio           = RT_N15_GPIO_BUTTON_RESET,
                .active_low     = 1,
        }, {
                .desc           = "wps",
                .type           = EV_KEY,
-               .code           = BTN_1,
+               .code           = KEY_WPS_BUTTON,
                .threshold      = 3,
                .gpio           = RT_N15_GPIO_BUTTON_WPS,
                .active_low     = 1,