aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-11-12 12:50:20 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-11-12 12:50:20 +0000
commit96e3c5d0b806ded0f364eb4285adeaeb04bce33c (patch)
tree22a1da7af572da1cbb9b688a94405ed7e754e861 /target/linux
parent0b8f0e8e22069fe29cc6eb279a1ce53c62cd9853 (diff)
downloadmaster-187ad058-96e3c5d0b806ded0f364eb4285adeaeb04bce33c.tar.gz
master-187ad058-96e3c5d0b806ded0f364eb4285adeaeb04bce33c.tar.bz2
master-187ad058-96e3c5d0b806ded0f364eb4285adeaeb04bce33c.zip
ar71xx: use the button for WPS control on the DB120
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28990 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-db120.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-db120.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-db120.c
index d1860689d0..c4a25322c1 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-db120.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-db120.c
@@ -28,7 +28,7 @@
#define DB120_GPIO_LED_STATUS 14
#define DB120_GPIO_LED_WPS 15
-#define DB120_GPIO_BTN_SW1 16
+#define DB120_GPIO_BTN_WPS 16
#define DB120_MAC0_OFFSET 0
#define DB120_MAC1_OFFSET 6
@@ -103,11 +103,11 @@ static struct gpio_led db120_leds_gpio[] __initdata = {
static struct gpio_keys_button db120_gpio_keys[] __initdata = {
{
- .desc = "sw1",
+ .desc = "WPS button",
.type = EV_KEY,
- .code = BTN_0,
+ .code = KEY_WPS_BUTTON,
.debounce_interval = DB120_KEYS_DEBOUNCE_INTERVAL,
- .gpio = DB120_GPIO_BTN_SW1,
+ .gpio = DB120_GPIO_BTN_WPS,
.active_low = 1,
}
};