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>

SVN-Revision: 45634
This commit is contained in:
Felix Fietkau 2015-05-08 12:23:53 +00:00
parent 6413f40e96
commit b1380ebae3

View File

@ -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,
},
};