summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-08-05 09:09:39 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-08-05 09:09:39 +0000
commit99a12119ca0a9bbc00286779e1b9459b21685d91 (patch)
treebc31ea4dc3044bc21d9fa6972f7c533bdc955bc2
parentccec78beaa12baccbb1be6ed1592e7cff64a00db (diff)
downloadmtk-20170518-99a12119ca0a9bbc00286779e1b9459b21685d91.zip
mtk-20170518-99a12119ca0a9bbc00286779e1b9459b21685d91.tar.gz
mtk-20170518-99a12119ca0a9bbc00286779e1b9459b21685d91.tar.bz2
ar71xx: fix tl-wa901nd buttons code
This patch fixes the code of the buttons for TP-Link WA901ND. Signed-off-by: Rocco Folino <lordzen@autistici.org> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37696
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wa901nd.c4
1 files changed, 2 insertions, 2 deletions
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 45e8f12..957b92c 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,