linux/drivers/gpu/drm/rcar-du
Danilo Krummrich 8c30eecc67 drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr}
The field paddr of struct drm_gem_dma_object holds a DMA address, which
might actually be a physical address. However, depending on the platform,
it can also be a bus address or a virtual address managed by an IOMMU.

Hence, rename the field to dma_addr, which is more applicable.

In order to do this renaming the following coccinelle script was used:

```
	@@
	struct drm_gem_dma_object *gem;
	@@

	- gem->paddr
	+ gem->dma_addr

	@@
	struct drm_gem_dma_object gem;
	@@

	- gem.paddr
	+ gem.dma_addr

	@exists@
	typedef dma_addr_t;
	symbol paddr;
	@@

	dma_addr_t paddr;
	<...
	- paddr
	+ dma_addr
	...>

	@@
	symbol paddr;
	@@
	dma_addr_t
	- paddr
	+ dma_addr
	;

```

This patch is compile-time tested with:

```
	make ARCH={x86_64,arm,arm64} allyesconfig
	make ARCH={x86_64,arm,arm64} drivers/gpu/drm`
```

Acked-by: Sam Ravnborg <sam@ravnborg.org>
Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220802000405.949236-5-dakr@redhat.com
2022-08-03 18:32:27 +02:00
..
Kconfig drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
Makefile drm: rcar-du: Drop LVDS device tree backward compatibility 2022-03-03 11:26:35 +02:00
rcar_cmm.c drm: rcar-du: Drop file name from comment header blocks 2022-07-07 05:21:54 +03:00
rcar_cmm.h drm: rcar-du: Drop file name from comment header blocks 2022-07-07 05:21:54 +03:00
rcar_du_crtc.c drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
rcar_du_crtc.h drm: rcar-du: Drop file name from comment header blocks 2022-07-07 05:21:54 +03:00
rcar_du_drv.c drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
rcar_du_drv.h drm: rcar-du: Add num_rpf to struct rcar_du_device_info 2022-07-07 05:21:55 +03:00
rcar_du_encoder.c Miscellaneous R-Car DU fixes and enhancements 2022-07-22 13:43:32 +10:00
rcar_du_encoder.h drm: rcar-du: Drop file name from comment header blocks 2022-07-07 05:21:54 +03:00
rcar_du_group.c drm: rcar-du: Drop file name from comment header blocks 2022-07-07 05:21:54 +03:00
rcar_du_group.h drm: rcar-du: Drop file name from comment header blocks 2022-07-07 05:21:54 +03:00
rcar_du_kms.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
rcar_du_kms.h drm: rcar-du: Drop file name from comment header blocks 2022-07-07 05:21:54 +03:00
rcar_du_plane.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
rcar_du_plane.h drm: rcar-du: Drop file name from comment header blocks 2022-07-07 05:21:54 +03:00
rcar_du_regs.h drm: rcar-du: Drop file name from comment header blocks 2022-07-07 05:21:54 +03:00
rcar_du_vsp.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
rcar_du_vsp.h drm: rcar-du: Drop file name from comment header blocks 2022-07-07 05:21:54 +03:00
rcar_du_writeback.c drm: rcar-du: Drop file name from comment header blocks 2022-07-07 05:21:54 +03:00
rcar_du_writeback.h drm: rcar-du: Drop file name from comment header blocks 2022-07-07 05:21:54 +03:00
rcar_dw_hdmi.c drm: rcar-du: dw-hdmi: Set output port number 2021-07-28 16:33:18 +03:00
rcar_lvds_regs.h drm: rcar-du: Drop file name from comment header blocks 2022-07-07 05:21:54 +03:00
rcar_lvds.c Miscellaneous R-Car DU fixes and enhancements 2022-07-22 13:43:32 +10:00
rcar_lvds.h drm: rcar-du: Drop file name from comment header blocks 2022-07-07 05:21:54 +03:00
rcar_mipi_dsi_regs.h drm: rcar-du: Drop file name from comment header blocks 2022-07-07 05:21:54 +03:00
rcar_mipi_dsi.c drm: rcar-du: Drop file name from comment header blocks 2022-07-07 05:21:54 +03:00