]> git.dujemihanovic.xyz Git - u-boot.git/commit
sunxi: Clean up inclusions of asm/arch/gpio.h
authorSamuel Holland <samuel@sholland.org>
Sat, 11 Sep 2021 21:50:47 +0000 (16:50 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 11 Oct 2021 09:46:44 +0000 (10:46 +0100)
commit425084610e08e344d43e0d142e72e65c9602379f
tree0b75a48a66c1e25515a78f64fbeef6a22dfd86cf
parent0534153fd14115cf66d33c2b841c1ac6048aed60
sunxi: Clean up inclusions of asm/arch/gpio.h

As part of migrating to DM_GPIO and DM_PINCTRL, eventually we will
remove the asm/arch/gpio.h header. In preparation, clean up the various
files that include it.

Some files did not contain any GPIO code at all, so this header was
completely unused.

A few files contained only legacy platform-specific GPIO code for
setting up pin muxes. They were left unchanged, as that code will be
completely removed by the DM_PINCTRL migration.

The remaining files contain some combination of DM_GPIO and legacy GPIO
code. For those, switch to including asm/gpio.h (if it wasn't included
already). Right now, this header provides both sets of functions,
because ARCH_SUNXI selects GPIO_EXTRA_HEADER. This will still be the
right header to include once the DM_GPIO migration is complete and
GPIO_EXTRA_HEADER is no longer needed.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
14 files changed:
arch/arm/mach-sunxi/board.c
arch/arm/mach-sunxi/clock.c
arch/arm/mach-sunxi/clock_sun4i.c
board/sunxi/board.c
board/sunxi/gmac.c
drivers/gpio/axp_gpio.c
drivers/gpio/sunxi_gpio.c
drivers/mmc/sunxi_mmc.c
drivers/net/sun8i_emac.c
drivers/power/axp809.c
drivers/power/axp818.c
drivers/usb/musb-new/sunxi.c
drivers/video/sunxi/sunxi_display.c
drivers/video/sunxi/sunxi_lcd.c