From 60cbdbb686c4e5572644b550c13c7182c6f99766 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Thu, 22 Apr 2010 09:25:37 +0000 Subject: ramips: use KEY_RESTART and KEY_WPS_BUTTON code for the appropriate buttons SVN-Revision: 21083 --- target/linux/ramips/files/arch/mips/ralink/rt305x/mach-v22rw-2x2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target/linux/ramips/files/arch/mips/ralink/rt305x/mach-v22rw-2x2.c') 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, -- cgit v1.2.3