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)
committerDavid Bauer <mail@david-bauer.net>
Sun, 31 May 2020 13:53:01 +0000 (15:53 +0200)
commitb017a016cc0cd26f84a7e6b8de3dc02dc101e888
treeb0e72da94fdaad94e55e8ad23ea90024b6020325
parent91b1a625f4a85ba94317351a0f7cca765a0d7935
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>
target/linux/ar71xx/files/arch/mips/ath79/mach-tl-mr3020.c