From: Gabor Juhos Date: Mon, 5 Aug 2013 09:09:39 +0000 (+0000) Subject: ar71xx: fix tl-wa901nd buttons code X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=99a12119ca0a9bbc00286779e1b9459b21685d91;p=openwrt%2Fstaging%2Fthess.git ar71xx: fix tl-wa901nd buttons code This patch fixes the code of the buttons for TP-Link WA901ND. Signed-off-by: Rocco Folino Signed-off-by: Gabor Juhos SVN-Revision: 37696 --- diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa901nd.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa901nd.c index 45e8f1287a..957b92cba6 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa901nd.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa901nd.c @@ -61,14 +61,14 @@ static struct gpio_keys_button tl_wa901nd_gpio_keys[] __initdata = { { .desc = "reset", .type = EV_KEY, - .code = BTN_0, + .code = KEY_RESTART, .debounce_interval = TL_WA901ND_KEYS_DEBOUNCE_INTERVAL, .gpio = TL_WA901ND_GPIO_BTN_RESET, .active_low = 1, }, { .desc = "qss", .type = EV_KEY, - .code = BTN_1, + .code = KEY_WPS_BUTTON, .debounce_interval = TL_WA901ND_KEYS_DEBOUNCE_INTERVAL, .gpio = TL_WA901ND_GPIO_BTN_QSS, .active_low = 1,