From 0baf6687af0116fbb7320a3e7a9a071ee96cb81b 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21083 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-300-revb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'target/linux/ramips/files/arch/mips/ralink/rt305x/mach-dir-300-revb.c') 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, -- cgit v1.2.3