summaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files/arch/mips/ralink/rt305x/mach-whr-g300n.c
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-04-22 09:25:37 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-04-22 09:25:37 +0000
commit3e39b51297d963e7176afd8fa3072015abcdf657 (patch)
tree21b259dde861697a219df807415c0f0524594a40 /target/linux/ramips/files/arch/mips/ralink/rt305x/mach-whr-g300n.c
parent892d978a39a76bfb215756472498737348c86613 (diff)
ramips: use KEY_RESTART and KEY_WPS_BUTTON code for the appropriate buttons
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21083 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/arch/mips/ralink/rt305x/mach-whr-g300n.c')
-rw-r--r--target/linux/ramips/files/arch/mips/ralink/rt305x/mach-whr-g300n.c4
1 files changed, 2 insertions, 2 deletions
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 4e0e810bb..a8c171c84 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,