ramips: use KEY_RESTART and KEY_WPS_BUTTON code for the appropriate buttons
[openwrt/svn-archive/archive.git] / target / linux / ramips / files / arch / mips / ralink / rt305x / mach-v22rw-2x2.c
index 812dfb4a98aed1b745537cb496645e41f222f1cc..8c4d18214f9e3c58f67fcd74180de9269538cb0a 100644 (file)
@@ -85,14 +85,14 @@ static struct gpio_button v22rw_2x2_gpio_buttons[] __initdata = {
        {
                .desc           = "reset",
                .type           = EV_KEY,
-               .code           = BTN_0,
+               .code           = KEY_RESTART,
                .threshold      = 3,
                .gpio           = V22RW_2X2_GPIO_BUTTON_SWRST,
                .active_low     = 1,
        }, {
                .desc           = "wps",
                .type           = EV_KEY,
-               .code           = BTN_1,
+               .code           = KEY_WPS_BUTTON,
                .threshold      = 3,
                .gpio           = V22RW_2X2_GPIO_BUTTON_WPS,
                .active_low     = 1,