aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-01-25 07:44:43 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-01-25 07:44:43 +0000
commit47e45167d90f0c1cc6bf8241f5ed2116de2f3b24 (patch)
treea40672dc4c589839d6bb48eee38e978da970ca45 /target/linux
parent65e416c0b2ac82975ee57adc60b26ed70165a0d1 (diff)
downloadupstream-47e45167d90f0c1cc6bf8241f5ed2116de2f3b24.tar.gz
upstream-47e45167d90f0c1cc6bf8241f5ed2116de2f3b24.tar.bz2
upstream-47e45167d90f0c1cc6bf8241f5ed2116de2f3b24.zip
ar71xx: TL-MR3020: fix GPIO polarity for button and switch
This patch fixes the GPIO polarity for the button and the sliding switch. The buttons are not active low. "Pressed" and "Released" events are wrong without the patch. Signed-off-by: Christian Cier-Zniewski <c.cier@gmx.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29904 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ar71xx/files-2.6.39/arch/mips/ar71xx/mach-tl-mr3020.c6
-rw-r--r--target/linux/ar71xx/files-3.2/arch/mips/ath79/mach-tl-mr3020.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/target/linux/ar71xx/files-2.6.39/arch/mips/ar71xx/mach-tl-mr3020.c b/target/linux/ar71xx/files-2.6.39/arch/mips/ar71xx/mach-tl-mr3020.c
index 6af58d1a5f..21ec3e0f77 100644
--- a/target/linux/ar71xx/files-2.6.39/arch/mips/ar71xx/mach-tl-mr3020.c
+++ b/target/linux/ar71xx/files-2.6.39/arch/mips/ar71xx/mach-tl-mr3020.c
@@ -74,7 +74,7 @@ static struct gpio_keys_button tl_mr3020_gpio_keys[] __initdata = {
.code = KEY_WPS_BUTTON,
.debounce_interval = TL_MR3020_KEYS_DEBOUNCE_INTERVAL,
.gpio = TL_MR3020_GPIO_BTN_WPS,
- .active_low = 1,
+ .active_low = 0,
},
{
.desc = "sw1",
@@ -82,7 +82,7 @@ static struct gpio_keys_button tl_mr3020_gpio_keys[] __initdata = {
.code = BTN_0,
.debounce_interval = TL_MR3020_KEYS_DEBOUNCE_INTERVAL,
.gpio = TL_MR3020_GPIO_BTN_SW1,
- .active_low = 1,
+ .active_low = 0,
},
{
.desc = "sw2",
@@ -90,7 +90,7 @@ static struct gpio_keys_button tl_mr3020_gpio_keys[] __initdata = {
.code = BTN_1,
.debounce_interval = TL_MR3020_KEYS_DEBOUNCE_INTERVAL,
.gpio = TL_MR3020_GPIO_BTN_SW2,
- .active_low = 1,
+ .active_low = 0,
}
};
diff --git a/target/linux/ar71xx/files-3.2/arch/mips/ath79/mach-tl-mr3020.c b/target/linux/ar71xx/files-3.2/arch/mips/ath79/mach-tl-mr3020.c
index f31874ff67..35be0f7ad4 100644
--- a/target/linux/ar71xx/files-3.2/arch/mips/ath79/mach-tl-mr3020.c
+++ b/target/linux/ar71xx/files-3.2/arch/mips/ath79/mach-tl-mr3020.c
@@ -74,7 +74,7 @@ static struct gpio_keys_button tl_mr3020_gpio_keys[] __initdata = {
.code = KEY_WPS_BUTTON,
.debounce_interval = TL_MR3020_KEYS_DEBOUNCE_INTERVAL,
.gpio = TL_MR3020_GPIO_BTN_WPS,
- .active_low = 1,
+ .active_low = 0,
},
{
.desc = "sw1",
@@ -82,7 +82,7 @@ static struct gpio_keys_button tl_mr3020_gpio_keys[] __initdata = {
.code = BTN_0,
.debounce_interval = TL_MR3020_KEYS_DEBOUNCE_INTERVAL,
.gpio = TL_MR3020_GPIO_BTN_SW1,
- .active_low = 1,
+ .active_low = 0,
},
{
.desc = "sw2",
@@ -90,7 +90,7 @@ static struct gpio_keys_button tl_mr3020_gpio_keys[] __initdata = {
.code = BTN_1,
.debounce_interval = TL_MR3020_KEYS_DEBOUNCE_INTERVAL,
.gpio = TL_MR3020_GPIO_BTN_SW2,
- .active_low = 1,
+ .active_low = 0,
}
};