]> git.dujemihanovic.xyz Git - u-boot.git/commit
treewide: convert devfdt_get_addr_ptr() to dev_read_addr_ptr()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 4 Aug 2020 05:14:43 +0000 (14:14 +0900)
committerSimon Glass <sjg@chromium.org>
Sat, 22 Aug 2020 14:53:37 +0000 (08:53 -0600)
commit702e57e113d85fef60ebe9e5c87194414666cfac
tree58d9823923bb1af7b116e3b47b537769f0719cd7
parent1450bff3e4719d1b34189bf62ad19d0e3c10a548
treewide: convert devfdt_get_addr_ptr() to dev_read_addr_ptr()

When you enable CONFIG_OF_LIVE, you will end up with a lot of
conversions.

To help this tedious work, this commit converts devfdt_get_addr_ptr()
to dev_read_addr_ptr() by coccinelle. I also removed redundant casts
because dev_read_addr_ptr() returns an opaque pointer.

To generate this commit, I ran the following semantic patch
excluding include/dm/.

  <smpl>
  @@
  type T;
  expression dev;
  @@
  -(T *)devfdt_get_addr_ptr(dev)
  +dev_read_addr_ptr(dev)
  @@
  expression dev;
  @@
  -devfdt_get_addr_ptr(dev)
  +dev_read_addr_ptr(dev)
  </smpl>

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
18 files changed:
drivers/clk/aspeed/clk_ast2500.c
drivers/clk/at91/pmc.c
drivers/gpio/hsdk-creg-gpio.c
drivers/i2c/ast_i2c.c
drivers/i2c/designware_i2c.c
drivers/i2c/mv_i2c.c
drivers/i2c/mvtwsi.c
drivers/mmc/gen_atmel_mci.c
drivers/mmc/snps_dw_mmc.c
drivers/pinctrl/mvebu/pinctrl-mvebu.c
drivers/reset/reset-socfpga.c
drivers/serial/serial_mvebu_a3700.c
drivers/spi/uniphier_spi.c
drivers/sysreset/sysreset_socfpga.c
drivers/timer/ast_timer.c
drivers/timer/atmel_pit_timer.c
drivers/usb/host/ehci-zynq.c
drivers/watchdog/ast_wdt.c