From: John Crispin Date: Fri, 1 Aug 2014 11:19:34 +0000 (+0000) Subject: ar71xx: oolite: the buttons are not active_low X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e7ec79821a616f5f64641e84d73a6594679e7976;p=openwrt%2Fstaging%2Fsvanheule.git ar71xx: oolite: the buttons are not active_low this caused factory resets when reboot was pressed Signed-off-by: Brent Thomson Signed-off-by: John Crispin SVN-Revision: 41932 --- diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-gs-oolite.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-gs-oolite.c index 3d85f24616..c6cb61c366 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-gs-oolite.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-gs-oolite.c @@ -54,7 +54,7 @@ static struct gpio_keys_button gs_oolite_gpio_keys[] __initdata = { .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 @@ static struct gpio_keys_button gs_oolite_gpio_keys[] __initdata = { .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 @@ static struct gpio_keys_button gs_oolite_gpio_keys[] __initdata = { .code = BTN_7, .debounce_interval = GS_OOLITE_KEYS_DEBOUNCE_INTERVAL, .gpio = GS_OOLITE_GPIO_BTN7, - .active_low = 1, + .active_low = 0, }, };