[U-Boot] [PATCH v3 3/9] dm: Rename dev_addr..() functions

sjg at google.com sjg at google.com
Thu May 18 16:01:23 UTC 2017


These support the flat device tree. We want to use the dev_read_..()
prefix for functions that support both flat tree and live tree. So rename
the existing functions to avoid confusion.

In the end we will have:

   1. dev_read_addr...()    - works on devices, supports flat/live tree
   2. devfdt_get_addr...()  - current functions, flat tree only
   3. of_get_address() etc. - new functions, live tree only

All drivers will be written to use 1. That function will in turn call
either 2 or 3 depending on whether the flat or live tree is in use.

Note this involves changing some dead code - the imx_lpi2c.c file.

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

Changes in v3: None
Changes in v2: None

 arch/arm/mach-mvebu/sata.c                       |  2 +-
 arch/arm/mach-rockchip/rk3328/clk_rk3328.c       |  2 +-
 arch/arm/mach-snapdragon/clock-apq8016.c         |  2 +-
 drivers/adc/exynos-adc.c                         |  2 +-
 drivers/block/dwc_ahci.c                         |  4 +-
 drivers/block/sata_ceva.c                        |  2 +-
 drivers/clk/aspeed/clk_ast2500.c                 |  2 +-
 drivers/clk/at91/pmc.c                           |  4 +-
 drivers/clk/clk_bcm6345.c                        |  2 +-
 drivers/clk/exynos/clk-exynos7420.c              |  4 +-
 drivers/clk/rockchip/clk_rk3036.c                |  2 +-
 drivers/clk/rockchip/clk_rk3188.c                |  2 +-
 drivers/clk/rockchip/clk_rk3288.c                |  2 +-
 drivers/clk/rockchip/clk_rk3328.c                |  2 +-
 drivers/clk/rockchip/clk_rk3399.c                |  4 +-
 drivers/clk/uniphier/clk-uniphier-core.c         |  2 +-
 drivers/core/fdtaddr.c                           | 24 +++----
 drivers/cpu/bmips_cpu.c                          |  2 +-
 drivers/dma/ti-edma3.c                           |  2 +-
 drivers/gpio/altera_pio.c                        |  2 +-
 drivers/gpio/at91_gpio.c                         |  2 +-
 drivers/gpio/atmel_pio4.c                        |  2 +-
 drivers/gpio/bcm2835_gpio.c                      |  2 +-
 drivers/gpio/bcm6345_gpio.c                      |  4 +-
 drivers/gpio/gpio-uniphier.c                     |  2 +-
 drivers/gpio/imx_rgpio2p.c                       |  2 +-
 drivers/gpio/msm_gpio.c                          |  2 +-
 drivers/gpio/mvebu_gpio.c                        |  2 +-
 drivers/gpio/mxc_gpio.c                          |  2 +-
 drivers/gpio/omap_gpio.c                         |  2 +-
 drivers/gpio/pm8916_gpio.c                       |  4 +-
 drivers/gpio/rk_gpio.c                           |  2 +-
 drivers/gpio/s5p_gpio.c                          |  4 +-
 drivers/gpio/stm32f7_gpio.c                      |  2 +-
 drivers/gpio/sunxi_gpio.c                        |  2 +-
 drivers/gpio/tegra186_gpio.c                     |  2 +-
 drivers/gpio/tegra_gpio.c                        |  2 +-
 drivers/gpio/vybrid_gpio.c                       |  2 +-
 drivers/gpio/zynq_gpio.c                         |  2 +-
 drivers/i2c/Kconfig                              |  1 -
 drivers/i2c/ast_i2c.c                            |  2 +-
 drivers/i2c/at91_i2c.c                           |  2 +-
 drivers/i2c/davinci_i2c.c                        |  2 +-
 drivers/i2c/designware_i2c.c                     |  2 +-
 drivers/i2c/exynos_hs_i2c.c                      |  2 +-
 drivers/i2c/i2c-cdns.c                           |  2 +-
 drivers/i2c/i2c-uniphier-f.c                     |  2 +-
 drivers/i2c/i2c-uniphier.c                       |  2 +-
 drivers/i2c/imx_lpi2c.c                          | 80 ++++++++++++------------
 drivers/i2c/mv_i2c.c                             |  2 +-
 drivers/i2c/mvtwsi.c                             |  2 +-
 drivers/i2c/mxc_i2c.c                            |  2 +-
 drivers/i2c/omap24xx_i2c.c                       |  2 +-
 drivers/i2c/rk_i2c.c                             |  2 +-
 drivers/i2c/s3c24x0_i2c.c                        |  2 +-
 drivers/i2c/tegra_i2c.c                          |  2 +-
 drivers/input/tegra-kbc.c                        |  2 +-
 drivers/led/led_bcm6328.c                        |  5 +-
 drivers/led/led_bcm6358.c                        |  5 +-
 drivers/mailbox/tegra-hsp.c                      |  2 +-
 drivers/misc/altera_sysid.c                      |  2 +-
 drivers/mmc/atmel_sdhci.c                        |  2 +-
 drivers/mmc/bcm2835_sdhci.c                      |  2 +-
 drivers/mmc/fsl_esdhc.c                          |  2 +-
 drivers/mmc/gen_atmel_mci.c                      |  2 +-
 drivers/mmc/meson_gx_mmc.c                       |  2 +-
 drivers/mmc/msm_sdhci.c                          |  2 +-
 drivers/mmc/omap_hsmmc.c                         |  3 +-
 drivers/mmc/rockchip_dw_mmc.c                    |  2 +-
 drivers/mmc/rockchip_sdhci.c                     |  2 +-
 drivers/mmc/sdhci-cadence.c                      |  2 +-
 drivers/mmc/socfpga_dw_mmc.c                     |  2 +-
 drivers/mmc/sti_sdhci.c                          |  2 +-
 drivers/mmc/tangier_sdhci.c                      |  2 +-
 drivers/mmc/tegra_mmc.c                          |  2 +-
 drivers/mmc/uniphier-sd.c                        |  2 +-
 drivers/mmc/xenon_sdhci.c                        |  4 +-
 drivers/mmc/zynq_sdhci.c                         |  2 +-
 drivers/net/ag7xxx.c                             |  2 +-
 drivers/net/cpsw.c                               |  2 +-
 drivers/net/designware.c                         |  2 +-
 drivers/net/dwc_eth_qos.c                        |  4 +-
 drivers/net/ethoc.c                              |  4 +-
 drivers/net/fec_mxc.c                            |  2 +-
 drivers/net/keystone_net.c                       |  2 +-
 drivers/net/macb.c                               |  2 +-
 drivers/net/mvneta.c                             |  2 +-
 drivers/net/mvpp2.c                              |  8 +--
 drivers/net/sandbox-raw.c                        |  2 +-
 drivers/net/sandbox.c                            |  2 +-
 drivers/net/sun8i_emac.c                         |  4 +-
 drivers/net/sunxi_emac.c                         |  2 +-
 drivers/net/tsec.c                               |  2 +-
 drivers/net/xilinx_axi_emac.c                    |  2 +-
 drivers/net/xilinx_emaclite.c                    |  2 +-
 drivers/net/zynq_gem.c                           |  2 +-
 drivers/pci/pcie_dw_mvebu.c                      |  4 +-
 drivers/phy/marvell/comphy_core.c                |  4 +-
 drivers/phy/ti-pipe3-phy.c                       |  2 +-
 drivers/pinctrl/ath79/pinctrl_ar933x.c           |  2 +-
 drivers/pinctrl/ath79/pinctrl_qca953x.c          |  2 +-
 drivers/pinctrl/exynos/pinctrl-exynos.c          |  2 +-
 drivers/pinctrl/mvebu/pinctrl-mvebu.c            |  2 +-
 drivers/pinctrl/pinctrl-at91-pio4.c              |  2 +-
 drivers/pinctrl/pinctrl-at91.c                   |  2 +-
 drivers/pinctrl/pinctrl-single.c                 |  2 +-
 drivers/pinctrl/uniphier/pinctrl-uniphier-core.c |  2 +-
 drivers/power/domain/bcm6328-power-domain.c      |  2 +-
 drivers/power/pmic/pm8916.c                      |  2 +-
 drivers/pwm/exynos_pwm.c                         |  2 +-
 drivers/pwm/rk_pwm.c                             |  2 +-
 drivers/pwm/tegra_pwm.c                          |  2 +-
 drivers/ram/bmips_ram.c                          |  2 +-
 drivers/reset/reset-bcm6345.c                    |  2 +-
 drivers/reset/reset-uniphier.c                   |  2 +-
 drivers/serial/altera_jtag_uart.c                |  2 +-
 drivers/serial/altera_uart.c                     |  2 +-
 drivers/serial/atmel_usart.c                     |  2 +-
 drivers/serial/ns16550.c                         |  2 +-
 drivers/serial/serial_ar933x.c                   |  2 +-
 drivers/serial/serial_arc.c                      |  2 +-
 drivers/serial/serial_bcm283x_mu.c               |  2 +-
 drivers/serial/serial_bcm6345.c                  |  2 +-
 drivers/serial/serial_lpuart.c                   |  2 +-
 drivers/serial/serial_meson.c                    |  2 +-
 drivers/serial/serial_msm.c                      |  2 +-
 drivers/serial/serial_mvebu_a3700.c              |  2 +-
 drivers/serial/serial_mxc.c                      |  2 +-
 drivers/serial/serial_pl01x.c                    |  2 +-
 drivers/serial/serial_s5p.c                      |  2 +-
 drivers/serial/serial_sti_asc.c                  |  2 +-
 drivers/serial/serial_stm32x7.c                  |  2 +-
 drivers/serial/serial_uniphier.c                 |  2 +-
 drivers/serial/serial_xuartlite.c                |  2 +-
 drivers/serial/serial_zynq.c                     |  2 +-
 drivers/spi/altera_spi.c                         |  2 +-
 drivers/spi/ath79_spi.c                          |  2 +-
 drivers/spi/atmel_spi.c                          |  2 +-
 drivers/spi/davinci_spi.c                        |  2 +-
 drivers/spi/designware_spi.c                     |  2 +-
 drivers/spi/exynos_spi.c                         |  2 +-
 drivers/spi/fsl_dspi.c                           |  2 +-
 drivers/spi/kirkwood_spi.c                       |  2 +-
 drivers/spi/mvebu_a3700_spi.c                    |  2 +-
 drivers/spi/omap3_spi.c                          |  2 +-
 drivers/spi/rk_spi.c                             |  2 +-
 drivers/spi/tegra114_spi.c                       |  2 +-
 drivers/spi/tegra20_sflash.c                     |  2 +-
 drivers/spi/tegra20_slink.c                      |  2 +-
 drivers/spi/tegra210_qspi.c                      |  2 +-
 drivers/spi/ti_qspi.c                            |  8 +--
 drivers/spi/zynq_spi.c                           |  2 +-
 drivers/spmi/spmi-msm.c                          |  2 +-
 drivers/sysreset/sysreset_snapdragon.c           |  2 +-
 drivers/timer/altera_timer.c                     |  2 +-
 drivers/timer/ast_timer.c                        |  2 +-
 drivers/timer/omap-timer.c                       |  2 +-
 drivers/tpm/tpm_tis_lpc.c                        |  2 +-
 drivers/usb/host/dwc2.c                          |  2 +-
 drivers/usb/host/ehci-atmel.c                    |  2 +-
 drivers/usb/host/ehci-exynos.c                   |  2 +-
 drivers/usb/host/ehci-fsl.c                      |  2 +-
 drivers/usb/host/ehci-generic.c                  |  2 +-
 drivers/usb/host/ehci-marvell.c                  |  2 +-
 drivers/usb/host/ehci-msm.c                      |  2 +-
 drivers/usb/host/ehci-mx6.c                      |  4 +-
 drivers/usb/host/ehci-sunxi.c                    |  2 +-
 drivers/usb/host/ehci-tegra.c                    |  2 +-
 drivers/usb/host/ehci-vf.c                       |  2 +-
 drivers/usb/host/ehci-zynq.c                     |  2 +-
 drivers/usb/host/ohci-generic.c                  |  2 +-
 drivers/usb/host/ohci-sunxi.c                    |  2 +-
 drivers/usb/host/xhci-exynos5.c                  |  2 +-
 drivers/usb/host/xhci-fsl.c                      |  2 +-
 drivers/usb/host/xhci-mvebu.c                    |  2 +-
 drivers/usb/host/xhci-rockchip.c                 |  4 +-
 drivers/usb/musb-new/ti-musb.c                   |  2 +-
 drivers/video/atmel_hlcdfb.c                     |  2 +-
 drivers/video/exynos/exynos_dp.c                 |  2 +-
 drivers/video/exynos/exynos_fb.c                 |  2 +-
 drivers/video/rockchip/rk_edp.c                  |  2 +-
 drivers/video/rockchip/rk_hdmi.c                 |  2 +-
 drivers/video/rockchip/rk_lvds.c                 |  2 +-
 drivers/video/rockchip/rk_mipi.c                 |  2 +-
 drivers/video/rockchip/rk_vop.c                  |  2 +-
 drivers/video/tegra.c                            |  2 +-
 drivers/video/tegra124/dp.c                      |  2 +-
 drivers/watchdog/ast_wdt.c                       |  2 +-
 include/dm/fdtaddr.h                             | 26 ++++----
 189 files changed, 276 insertions(+), 274 deletions(-)

Applied to u-boot-dm


More information about the U-Boot mailing list