1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/tidss
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/tidss: New driver for TI Keystone platform Display SubSystem 2020-01-27 19:27:30 +02:00
tidss_crtc.c drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
tidss_crtc.h drm/tidss: Replace HTTP links with HTTPS ones 2020-07-16 22:13:52 +02:00
tidss_dispc.c drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} 2022-08-03 18:32:27 +02:00
tidss_dispc.h drm/tidss: implement WA for AM65xx erratum i2000 2020-08-21 15:17:05 +03:00
tidss_dispc_regs.h drm/tidss: Replace HTTP links with HTTPS ones 2020-07-16 22:13:52 +02:00
tidss_drv.c drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
tidss_drv.h drm/tidss: Convert to Linux IRQ interfaces 2021-08-10 20:13:49 +02:00
tidss_encoder.c drm/tidss: Replace HTTP links with HTTPS ones 2020-07-16 22:13:52 +02:00
tidss_encoder.h drm/tidss: Replace HTTP links with HTTPS ones 2020-07-16 22:13:52 +02:00
tidss_irq.c drm/tidss: Convert to Linux IRQ interfaces 2021-08-10 20:13:49 +02:00
tidss_irq.h drm/tidss: Convert to Linux IRQ interfaces 2021-08-10 20:13:49 +02:00
tidss_kms.c drm/fb: remove unused includes of drm_fb_cma_helper.h 2022-08-03 18:30:20 +02:00
tidss_kms.h drm/tidss: Replace HTTP links with HTTPS ones 2020-07-16 22:13:52 +02:00
tidss_plane.c drm/fb: remove unused includes of drm_fb_cma_helper.h 2022-08-03 18:30:20 +02:00
tidss_plane.h drm/tidss: Replace HTTP links with HTTPS ones 2020-07-16 22:13:52 +02:00
tidss_scale_coefs.c drm/tidss: Replace HTTP links with HTTPS ones 2020-07-16 22:13:52 +02:00
tidss_scale_coefs.h drm/tidss: Replace HTTP links with HTTPS ones 2020-07-16 22:13:52 +02:00