ar71xx: mach-rbspi: simplify reset button registration
authorGabor Juhos <juhosg@freemail.hu>
Mon, 15 Jan 2018 19:50:43 +0000 (20:50 +0100)
committerJohn Crispin <john@phrozen.org>
Wed, 17 Jan 2018 10:07:17 +0000 (11:07 +0100)
commitbc178f6b15c6bca292fa19982e4189f6ca7c64d4
treea4558076796dd481a5dc1abd2cc062426ac69d1a
parent8954bc31edfaf80e997b7899126cbbb24cb41cdc
ar71xx: mach-rbspi: simplify reset button registration

The setup code defines four individual structures for the
Reset buttons of the supported boards. The only difference
between the definitions is the GPIO number used for the
button.

Replace the different structures with one generic variant,
and add a helper function to simplify the button registration.

Signed-off-by: Gabor Juhos <juhosg@freemail.hu>
target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c