ar71xx: correct button type for TL-MR3020 mode slider
authorDavid Bauer <mail@david-bauer.net>
Sat, 30 May 2020 14:24:03 +0000 (16:24 +0200)
committerRISCi_ATOM <Bob@bobcall.me>
Tue, 2 Jun 2020 02:54:29 +0000 (02:54 +0000)
commitf42da46fe953c2e7eb6975aaa8cc216821539597
tree1018413613303149c492c26e4a292a2078e17922
parentc8ffb21476d19036e99711c239f225843d193281
ar71xx: correct button type for TL-MR3020 mode slider

The TP-Link TL-MR3020 has a three-state mode slider which was previously
integrated as a button (EV_KEY). This led to spurious activations of
failsafe mode.

Set the type for the button to switch (EV_SW), to avoid unintended
activations of failsafe mode.

Related: commit 27f3f493de06 ("gpio-button-hotplug: unify polled and
interrupt code")

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit b017a016cc0cd26f84a7e6b8de3dc02dc101e888)
target/linux/ar71xx/files/arch/mips/ath79/mach-tl-mr3020.c