Author: blogic
Date: 2014-08-03 13:15:45 +0200 (Sun, 03 Aug 2014)
New Revision: 41972

Modified:
   
branches/barrier_breaker/target/linux/ar71xx/files/arch/mips/ath79/mach-gs-oolite.c
Log:
ar71xx: oolite: the buttons are not active_low

this caused factory resets when reboot was pressed

Signed-off-by: Brent Thomson <[email protected]>
Signed-off-by: John Crispin <[email protected]>

Backport of r41932

Modified: 
branches/barrier_breaker/target/linux/ar71xx/files/arch/mips/ath79/mach-gs-oolite.c
===================================================================
--- 
branches/barrier_breaker/target/linux/ar71xx/files/arch/mips/ath79/mach-gs-oolite.c
 2014-08-03 11:15:43 UTC (rev 41971)
+++ 
branches/barrier_breaker/target/linux/ar71xx/files/arch/mips/ath79/mach-gs-oolite.c
 2014-08-03 11:15:45 UTC (rev 41972)
@@ -54,7 +54,7 @@
                .code           = KEY_RESTART,
                .debounce_interval = GS_OOLITE_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = GS_OOLITE_GPIO_BTN_RESET,
-               .active_low     = 1,
+               .active_low     = 0,
        },
        {
                .desc           = "BTN_6",
@@ -62,7 +62,7 @@
                .code           = BTN_6,
                .debounce_interval = GS_OOLITE_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = GS_OOLITE_GPIO_BTN6,
-               .active_low     = 1,
+               .active_low     = 0,
        },
        {
                .desc           = "BTN_7",
@@ -70,7 +70,7 @@
                .code           = BTN_7,
                .debounce_interval = GS_OOLITE_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = GS_OOLITE_GPIO_BTN7,
-               .active_low     = 1,
+               .active_low     = 0,
        },
 };
 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to