mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 19:49:54 +02:00
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
This commit is contained in:
parent
1f36707451
commit
f662489883
@ -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,
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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,
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user