[PATCH v5 15/21] drivers: use dev_read_addr_ptr when cast to pointer

Simon Glass sjg at chromium.org
Wed Mar 1 16:01:50 CET 2023


On Tue, 28 Feb 2023 at 14:21, Johan Jonker <jbx6244 at gmail.com> wrote:
>
> 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.
>
> Signed-off-by: Johan Jonker <jbx6244 at gmail.com>
> ---
>
> Changed V2:
>   rebase
>   fix typo
>   fix more files
> ---
>  arch/arm/mach-mvebu/system-controller.c        | 4 ++--
>  doc/develop/driver-model/livetree.rst          | 2 +-
>  drivers/ata/dwc_ahsata.c                       | 2 +-
>  drivers/cache/cache-l2x0.c                     | 2 +-
>  drivers/cache/cache-v5l2.c                     | 2 +-
>  drivers/gpio/mscc_sgpio.c                      | 2 +-
>  drivers/gpio/tegra_gpio.c                      | 4 ++--
>  drivers/gpio/xilinx_gpio.c                     | 2 +-
>  drivers/i2c/i2c-cdns.c                         | 2 +-
>  drivers/i2c/tegra_i2c.c                        | 4 ++--
>  drivers/mmc/am654_sdhci.c                      | 2 +-
>  drivers/mmc/davinci_mmc.c                      | 2 +-
>  drivers/mmc/piton_mmc.c                        | 2 +-
>  drivers/mmc/tegra_mmc.c                        | 2 +-
>  drivers/mmc/zynq_sdhci.c                       | 6 +++---
>  drivers/mtd/nand/raw/arasan_nfc.c              | 2 +-
>  drivers/mtd/nand/raw/cortina_nand.c            | 2 +-
>  drivers/mtd/nand/raw/mxic_nand.c               | 2 +-
>  drivers/mtd/nand/raw/tegra_nand.c              | 2 +-
>  drivers/mtd/nand/raw/zynq_nand.c               | 2 +-
>  drivers/net/mvmdio.c                           | 2 +-
>  drivers/net/qe/dm_qe_uec_phy.c                 | 2 +-
>  drivers/pci/pci-aardvark.c                     | 4 ++--
>  drivers/phy/allwinner/phy-sun50i-usb3.c        | 6 +++---
>  drivers/phy/qcom/phy-qcom-usb-hs-28nm.c        | 4 ++--
>  drivers/phy/qcom/phy-qcom-usb-ss.c             | 4 ++--
>  drivers/phy/rockchip/phy-rockchip-snps-pcie3.c | 4 ++--
>  drivers/phy/rockchip/phy-rockchip-typec.c      | 6 +++---
>  drivers/pwm/tegra_pwm.c                        | 2 +-
>  drivers/serial/serial_zynq.c                   | 6 +++---
>  drivers/spi/mpc8xxx_spi.c                      | 2 +-
>  drivers/spi/mscc_bb_spi.c                      | 2 +-
>  drivers/spi/sh_qspi.c                          | 2 +-
>  drivers/spi/spi-mxic.c                         | 2 +-
>  drivers/spi/xilinx_spi.c                       | 2 +-
>  drivers/ufs/ufs.c                              | 2 +-
>  drivers/usb/host/ehci-tegra.c                  | 2 +-
>  drivers/video/dw_mipi_dsi.c                    | 4 ++--
>  drivers/video/rockchip/rk_vop.c                | 2 +-
>  drivers/video/stm32/stm32_dsi.c                | 4 ++--
>  drivers/video/stm32/stm32_ltdc.c               | 4 ++--
>  drivers/video/tegra124/display.c               | 2 +-
>  drivers/video/tegra124/sor.c                   | 6 +++---
>  drivers/video/ti/tilcdc.c                      | 4 ++--
>  drivers/watchdog/cdns_wdt.c                    | 6 +++---
>  drivers/watchdog/sp805_wdt.c                   | 6 +++---
>  drivers/watchdog/xilinx_tb_wdt.c               | 6 +++---
>  47 files changed, 74 insertions(+), 74 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

(you can drop the casts too)


More information about the U-Boot mailing list