ramips: use KEY_RESTART and KEY_WPS_BUTTON code for the appropriate buttons
authorGabor Juhos <juhosg@openwrt.org>
Thu, 22 Apr 2010 09:25:37 +0000 (09:25 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Thu, 22 Apr 2010 09:25:37 +0000 (09:25 +0000)
SVN-Revision: 21083

target/linux/ramips/files/arch/mips/ralink/rt288x/mach-rt-n15.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-300-revb.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-fonera20n.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-v22rw-2x2.c
target/linux/ramips/files/arch/mips/ralink/rt305x/mach-whr-g300n.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,
index 27fad6ad911c0d049c55bcf608ba076280a52e9b..d1c015f88a03744fcaa6b0a29318b75ee2710645 100644 (file)
@@ -91,14 +91,14 @@ static struct gpio_button dir_300b_gpio_buttons[] __initdata = {
        {
                .desc           = "reset",
                .type           = EV_KEY,
-               .code           = BTN_0,
+               .code           = KEY_RESTART,
                .threshold      = 3,
                .gpio           = DIR_300B_GPIO_BUTTON_RESET,
                .active_low     = 1,
        }, {
                .desc           = "wps",
                .type           = EV_KEY,
-               .code           = BTN_1,
+               .code           = KEY_WPS_BUTTON,
                .threshold      = 3,
                .gpio           = DIR_300B_GPIO_BUTTON_WPS,
                .active_low     = 1,
index c87bdaf3e8300a2dc173fd1b66746315856b5a8a..9de07d36b81593eead1913aadd7f46d6e177d061 100644 (file)
@@ -91,7 +91,7 @@ static struct gpio_button fonera20n_gpio_buttons[] __initdata = {
        {
                .desc           = "reset",
                .type           = EV_KEY,
-               .code           = BTN_0,
+               .code           = KEY_RESTART,
                .threshold      = 3,
                .gpio           = FONERA20N_GPIO_BUTTON_RESET,
                .active_low     = 1,
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,
index 4e0e810bbdfd707d5a74271af0ac76e1595307ec..a8c171c84990285f53cc35391fa9f7346127023c 100644 (file)
@@ -97,14 +97,14 @@ static struct gpio_button whr_g300n_gpio_buttons[] __initdata = {
        {
                .desc           = "reset",
                .type           = EV_KEY,
-               .code           = BTN_0,
+               .code           = KEY_RESTART,
                .threshold      = 3,
                .gpio           = WHR_G300N_GPIO_BUTTON_RESET,
                .active_low     = 1,
        }, {
                .desc           = "aoss",
                .type           = EV_KEY,
-               .code           = BTN_1,
+               .code           = KEY_WPS_BUTTON,
                .threshold      = 3,
                .gpio           = WHR_G300N_GPIO_BUTTON_AOSS,
                .active_low     = 1,