]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: use dev_read_addr_ptr when cast to pointer
authorJohan Jonker <jbx6244@gmail.com>
Mon, 13 Mar 2023 00:32:04 +0000 (01:32 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 6 May 2023 09:28:18 +0000 (17:28 +0800)
commita12a73b66476c48dfe5afd2c3711153d09feda6c
tree3a73c36e66587675ac707d82a8852653d4eaec65
parente5822ecba2d73e64ca55c26fc4762d9e80b1f1b5
drivers: use dev_read_addr_ptr when cast to pointer

The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU
can expect 64-bit data from the device tree parser, so use
dev_read_addr_ptr instead of the dev_read_addr function in the
various files in the drivers directory that cast to a pointer.
As we are there also streamline the error response to -EINVAL on return.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
47 files changed:
arch/arm/mach-mvebu/system-controller.c
doc/develop/driver-model/livetree.rst
drivers/ata/dwc_ahsata.c
drivers/cache/cache-l2x0.c
drivers/cache/cache-v5l2.c
drivers/gpio/mscc_sgpio.c
drivers/gpio/tegra_gpio.c
drivers/gpio/xilinx_gpio.c
drivers/i2c/i2c-cdns.c
drivers/i2c/tegra_i2c.c
drivers/mmc/am654_sdhci.c
drivers/mmc/davinci_mmc.c
drivers/mmc/piton_mmc.c
drivers/mmc/tegra_mmc.c
drivers/mmc/zynq_sdhci.c
drivers/mtd/nand/raw/arasan_nfc.c
drivers/mtd/nand/raw/cortina_nand.c
drivers/mtd/nand/raw/mxic_nand.c
drivers/mtd/nand/raw/tegra_nand.c
drivers/mtd/nand/raw/zynq_nand.c
drivers/net/mvmdio.c
drivers/net/qe/dm_qe_uec_phy.c
drivers/pci/pci-aardvark.c
drivers/phy/allwinner/phy-sun50i-usb3.c
drivers/phy/qcom/phy-qcom-usb-hs-28nm.c
drivers/phy/qcom/phy-qcom-usb-ss.c
drivers/phy/rockchip/phy-rockchip-snps-pcie3.c
drivers/phy/rockchip/phy-rockchip-typec.c
drivers/pwm/tegra_pwm.c
drivers/serial/serial_zynq.c
drivers/spi/mpc8xxx_spi.c
drivers/spi/mscc_bb_spi.c
drivers/spi/sh_qspi.c
drivers/spi/spi-mxic.c
drivers/spi/xilinx_spi.c
drivers/ufs/ufs.c
drivers/usb/host/ehci-tegra.c
drivers/video/dw_mipi_dsi.c
drivers/video/rockchip/rk_vop.c
drivers/video/stm32/stm32_dsi.c
drivers/video/stm32/stm32_ltdc.c
drivers/video/tegra124/display.c
drivers/video/tegra124/sor.c
drivers/video/ti/tilcdc.c
drivers/watchdog/cdns_wdt.c
drivers/watchdog/sp805_wdt.c
drivers/watchdog/xilinx_tb_wdt.c