ar71xx: oolite: the buttons are not active_low
this caused factory resets when reboot was pressed Signed-off-by: Brent Thomson <brentthomson@gmail.com> Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41932
This commit is contained in:
parent
6ce44430c9
commit
e7ec79821a
1 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@ static struct gpio_keys_button gs_oolite_gpio_keys[] __initdata = {
|
||||||
.code = KEY_RESTART,
|
.code = KEY_RESTART,
|
||||||
.debounce_interval = GS_OOLITE_KEYS_DEBOUNCE_INTERVAL,
|
.debounce_interval = GS_OOLITE_KEYS_DEBOUNCE_INTERVAL,
|
||||||
.gpio = GS_OOLITE_GPIO_BTN_RESET,
|
.gpio = GS_OOLITE_GPIO_BTN_RESET,
|
||||||
.active_low = 1,
|
.active_low = 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.desc = "BTN_6",
|
.desc = "BTN_6",
|
||||||
|
@ -62,7 +62,7 @@ static struct gpio_keys_button gs_oolite_gpio_keys[] __initdata = {
|
||||||
.code = BTN_6,
|
.code = BTN_6,
|
||||||
.debounce_interval = GS_OOLITE_KEYS_DEBOUNCE_INTERVAL,
|
.debounce_interval = GS_OOLITE_KEYS_DEBOUNCE_INTERVAL,
|
||||||
.gpio = GS_OOLITE_GPIO_BTN6,
|
.gpio = GS_OOLITE_GPIO_BTN6,
|
||||||
.active_low = 1,
|
.active_low = 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.desc = "BTN_7",
|
.desc = "BTN_7",
|
||||||
|
@ -70,7 +70,7 @@ static struct gpio_keys_button gs_oolite_gpio_keys[] __initdata = {
|
||||||
.code = BTN_7,
|
.code = BTN_7,
|
||||||
.debounce_interval = GS_OOLITE_KEYS_DEBOUNCE_INTERVAL,
|
.debounce_interval = GS_OOLITE_KEYS_DEBOUNCE_INTERVAL,
|
||||||
.gpio = GS_OOLITE_GPIO_BTN7,
|
.gpio = GS_OOLITE_GPIO_BTN7,
|
||||||
.active_low = 1,
|
.active_low = 0,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue