aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-05-08 12:23:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-05-08 12:23:53 +0000
commit53afee62b7b682169c3aa1fd63ea73d611a493a6 (patch)
tree274ee7f88765c6d09906c4646f57b5592b15710b /target/linux
parentd1029e7ef1ee57fb7b265073892339d4afd7af2b (diff)
downloadupstream-53afee62b7b682169c3aa1fd63ea73d611a493a6.tar.gz
upstream-53afee62b7b682169c3aa1fd63ea73d611a493a6.tar.bz2
upstream-53afee62b7b682169c3aa1fd63ea73d611a493a6.zip
ar71xx: set all buttons to be active_low on wnr2000-v4
Originally pressing a button would trigger a release state and vice-versa, as observed from hotplug.d. Signed-off-by: Michael J. Bazzinotti <mbazzinotti@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45634 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c
index df0bf0ed27..cc478e6152 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c
@@ -102,6 +102,7 @@ static struct gpio_keys_button wnr2000v4_gpio_keys[] __initdata = {
.code = KEY_WPS_BUTTON,
.debounce_interval = WNR2000V4_KEYS_DEBOUNCE_INTERVAL,
.gpio = WNR2000V4_GPIO_BTN_WPS,
+ .active_low = 1,
},
{
.desc = "Reset button",
@@ -109,6 +110,7 @@ static struct gpio_keys_button wnr2000v4_gpio_keys[] __initdata = {
.code = KEY_RESTART,
.debounce_interval = WNR2000V4_KEYS_DEBOUNCE_INTERVAL,
.gpio = WNR2000V4_GPIO_BTN_RESET,
+ .active_low = 1,
},
{
.desc = "WLAN button",
@@ -116,6 +118,7 @@ static struct gpio_keys_button wnr2000v4_gpio_keys[] __initdata = {
.code = KEY_WLAN,
.debounce_interval = WNR2000V4_KEYS_DEBOUNCE_INTERVAL,
.gpio = WNR2000V4_GPIO_BTN_WLAN,
+ .active_low = 1,
},
};