[PATCH 3/3] treewide: convert devfdt_get_addr_ptr() to dev_read_addr_ptr()
Simon Glass
sjg at chromium.org
Sun Aug 23 01:17:59 CEST 2020
On Mon, 3 Aug 2020 at 23:15, Masahiro Yamada
<yamada.masahiro at socionext.com> wrote:
>
> 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 at socionext.com>
> ---
>
> drivers/clk/aspeed/clk_ast2500.c | 2 +-
> drivers/clk/at91/pmc.c | 4 ++--
> drivers/gpio/hsdk-creg-gpio.c | 2 +-
> drivers/i2c/ast_i2c.c | 2 +-
> drivers/i2c/designware_i2c.c | 2 +-
> drivers/i2c/mv_i2c.c | 2 +-
> drivers/i2c/mvtwsi.c | 4 ++--
> drivers/mmc/gen_atmel_mci.c | 2 +-
> drivers/mmc/snps_dw_mmc.c | 2 +-
> drivers/pinctrl/mvebu/pinctrl-mvebu.c | 2 +-
> drivers/reset/reset-socfpga.c | 2 +-
> drivers/serial/serial_mvebu_a3700.c | 2 +-
> drivers/spi/uniphier_spi.c | 2 +-
> drivers/sysreset/sysreset_socfpga.c | 2 +-
> drivers/timer/ast_timer.c | 2 +-
> drivers/timer/atmel_pit_timer.c | 2 +-
> drivers/usb/host/ehci-zynq.c | 2 +-
> drivers/watchdog/ast_wdt.c | 2 +-
> 18 files changed, 20 insertions(+), 20 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list