u-boot/drivers/gpio
Masahiro Yamada 702e57e113 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>
2020-08-22 08:53:37 -06:00
..
74x164_gpio.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
adi_gpio2.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
altera_pio.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
at91_gpio.c gpio: at91: use dev_read_addr() to get base address 2020-08-22 08:51:44 -06:00
atmel_pio4.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
axp_gpio.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcm2835_gpio.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
bcm6345_gpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
cortina_gpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
da8xx_gpio.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
da8xx_gpio.h dm: gpio: Allow control of GPIO uclass in SPL 2019-12-15 08:52:29 +08:00
db8500_gpio.c GPIO: Correct doc typo "confguration" -> "configuration" 2017-02-08 16:24:29 -05:00
dwapb_gpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
gpio-rcar.c treewide: convert (void *)devfdt_get_addr() to dev_read_addr_ptr() 2020-07-25 14:46:57 -06:00
gpio-rza1.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
gpio-uclass.c gpio: Add a method to convert a GPIO to ACPI 2020-07-17 14:32:24 +08:00
gpio-uniphier.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
hi6220_gpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
hsdk-creg-gpio.c treewide: convert devfdt_get_addr_ptr() to dev_read_addr_ptr() 2020-08-22 08:53:37 -06:00
imx_rgpio2p.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
intel_broadwell_gpio.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
intel_gpio.c x86: gpio: Add support for obtaining ACPI info for a GPIO 2020-07-17 14:32:24 +08:00
intel_ich6_gpio.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
iproc_gpio.c drivers: gpio: add broadcom iproc gpio driver support 2020-07-29 10:37:11 -04:00
Kconfig xilinx: kconfig: Change Kconfig dependencies for Xilinx drivers 2020-08-20 09:46:55 +02:00
kona_gpio.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
kw_gpio.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
lpc32xx_gpio.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile gpio: octeon_gpio: Add GPIO controller driver for Octeon 2020-08-03 21:11:41 +02:00
mpc8xxx_gpio.c gpio: remove the open_drain API and ops 2020-04-16 23:06:54 -04:00
mpc83xx_gpio.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
mpc83xx_spisel_boot.c gpio/mpc83xx_spisel_boot.c: gpio driver for SPISEL_BOOT signal 2020-03-31 10:06:52 -04:00
mscc_sgpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
msm_gpio.c msm_gpio: Add support for Qualcomm IPQ40xx 2020-07-29 08:43:40 -04:00
mt7621_gpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mvebu_gpio.c treewide: convert (void *)devfdt_get_addr() to dev_read_addr_ptr() 2020-07-25 14:46:57 -06:00
mvgpio.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
mvgpio.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mvmfp.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mxc_gpio.c For 2020.10 2020-08-04 11:11:02 -04:00
mxs_gpio.c drivers: avoid using aliases on drivers when OF_PLATDATA is enabled 2020-07-28 19:30:39 -06:00
nx_gpio.c gpio: add nexell driver 2020-07-29 08:43:40 -04:00
octeon_gpio.c gpio: octeon_gpio: Add GPIO controller driver for Octeon 2020-08-03 21:11:41 +02:00
omap_gpio.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
pca953x_gpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pca953x.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
pca9698.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
pcf8575_gpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pic32_gpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pm8916_gpio.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
rk_gpio.c drivers: rename drivers to match compatible string 2020-07-09 18:57:22 -06:00
s5p_gpio.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
sandbox.c gpio: Add a method to convert a GPIO to ACPI 2020-07-17 14:32:24 +08:00
sh_pfc.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sifive-gpio.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
spear_gpio.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
stm32_gpio.c gpio: stm32: add ops get_dir_flags 2020-07-07 16:01:23 +02:00
sunxi_gpio.c treewide: convert (void *)devfdt_get_addr() to dev_read_addr_ptr() 2020-07-25 14:46:57 -06:00
tca642x.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
tegra186_gpio_priv.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tegra186_gpio.c gpio: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
tegra_gpio.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
vybrid_gpio.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
xilinx_gpio.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
zynq_gpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00