]> git.dujemihanovic.xyz Git - u-boot.git/commit
treewide: use dev_read_addr_*_ptr() where appropriate
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Wed, 27 Sep 2023 13:33:34 +0000 (15:33 +0200)
committerSimon Glass <sjg@chromium.org>
Fri, 13 Oct 2023 20:01:42 +0000 (14:01 -0600)
commit5fecea171de3b66e9e3a199c588bf12c6b1d3084
tree18496a3648b391f6d3dd9cf81bacb6f765260aa5
parent7f18fb8a272893eb32ce88cb780d51b4390b1899
treewide: use dev_read_addr_*_ptr() where appropriate

A follow-up to commit 842fb5de424e
("drivers: use devfdt_get_addr_size_index_ptr when cast to pointer")
and commit 320a1938b6f7
("drivers: use devfdt_get_addr_index_ptr when cast to pointer").

In addition to using the *_ptr variants of these functions where the
address is cast to a pointer, this also changes devfdt_get_addr_*() to
dev_read_addr_*() in a few places. Some variable and field types are
changed from fdt_addr_t or phys_addr_t to void* where the cast was
happening later.

This patch fixes a number of compile warnings when building a 32bit
U-Boot with CONFIG_PHYS_64BIT=y. In some places, it also fixes error
handling where the return value of dev_read_addr() etc. was checked for
NULL instead of FDT_ADDR_T_NONE.

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-k3/sysfw-loader.c
drivers/dma/ti/k3-udma.c
drivers/gpio/tegra186_gpio.c
drivers/mailbox/k3-sec-proxy.c
drivers/phy/allwinner/phy-sun4i-usb.c
drivers/phy/phy-bcm-sr-pcie.c
drivers/ram/k3-am654-ddrss.c
drivers/ram/k3-ddrss/k3-ddrss.c
drivers/soc/ti/k3-navss-ringacc.c