aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-04-22 09:25:37 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-04-22 09:25:37 +0000
commit60cbdbb686c4e5572644b550c13c7182c6f99766 (patch)
tree2615824e9138b6937e3e36e88344635528079bef /target/linux/ramips/files
parent4be3c3e48c90a8fb53f742d005db92088a90c575 (diff)
downloadupstream-60cbdbb686c4e5572644b550c13c7182c6f99766.tar.gz
upstream-60cbdbb686c4e5572644b550c13c7182c6f99766.tar.bz2
upstream-60cbdbb686c4e5572644b550c13c7182c6f99766.zip
ramips: use KEY_RESTART and KEY_WPS_BUTTON code for the appropriate buttons
SVN-Revision: 21083
Diffstat (limited to 'target/linux/ramips/files')
-rw-r--r--target/linux/ramips/files/arch/mips/ralink/rt288x/mach-rt-n15.c4
-rw-r--r--target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-300-revb.c4
-rw-r--r--target/linux/ramips/files/arch/mips/ralink/rt305x/mach-fonera20n.c2
-rw-r--r--target/linux/ramips/files/arch/mips/ralink/rt305x/mach-v22rw-2x2.c4
-rw-r--r--target/linux/ramips/files/arch/mips/ralink/rt305x/mach-whr-g300n.c4
5 files changed, 9 insertions, 9 deletions
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt288x/mach-rt-n15.c b/target/linux/ramips/files/arch/mips/ralink/rt288x/mach-rt-n15.c
index 1a869afacf..05ea79bff9 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt288x/mach-rt-n15.c
+++ b/target/linux/ramips/files/arch/mips/ralink/rt288x/mach-rt-n15.c
@@ -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,
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-300-revb.c b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-300-revb.c
index 27fad6ad91..d1c015f88a 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-300-revb.c
+++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-300-revb.c
@@ -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,
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-fonera20n.c b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-fonera20n.c
index c87bdaf3e8..9de07d36b8 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-fonera20n.c
+++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-fonera20n.c
@@ -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,
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-v22rw-2x2.c b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-v22rw-2x2.c
index 812dfb4a98..8c4d18214f 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-v22rw-2x2.c
+++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-v22rw-2x2.c
@@ -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,
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-whr-g300n.c b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-whr-g300n.c
index 4e0e810bbd..a8c171c849 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-whr-g300n.c
+++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-whr-g300n.c
@@ -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,