linux/drivers/gpu/drm/sti
Luis R. Rodriguez f6e45661f9 dma, mm/pat: Rename dma_*_writecombine() to dma_*_wc()
Rename dma_*_writecombine() to dma_*_wc(), so that the naming
is coherent across the various write-combining APIs. Keep the
old names for compatibility for a while, these can be removed
at a later time. A guard is left to enable backporting of the
rename, and later remove of the old mapping defines seemlessly.

Build tested successfully with allmodconfig.

The following Coccinelle SmPL patch was used for this simple
transformation:

@ rename_dma_alloc_writecombine @
expression dev, size, dma_addr, gfp;
@@

-dma_alloc_writecombine(dev, size, dma_addr, gfp)
+dma_alloc_wc(dev, size, dma_addr, gfp)

@ rename_dma_free_writecombine @
expression dev, size, cpu_addr, dma_addr;
@@

-dma_free_writecombine(dev, size, cpu_addr, dma_addr)
+dma_free_wc(dev, size, cpu_addr, dma_addr)

@ rename_dma_mmap_writecombine @
expression dev, vma, cpu_addr, dma_addr, size;
@@

-dma_mmap_writecombine(dev, vma, cpu_addr, dma_addr, size)
+dma_mmap_wc(dev, vma, cpu_addr, dma_addr, size)

We also keep the old names as compatibility helpers, and
guard against their definition to make backporting easier.

Generated-by: Coccinelle SmPL
Suggested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Luis R. Rodriguez <mcgrof@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: airlied@linux.ie
Cc: akpm@linux-foundation.org
Cc: benh@kernel.crashing.org
Cc: bhelgaas@google.com
Cc: bp@suse.de
Cc: dan.j.williams@intel.com
Cc: daniel.vetter@ffwll.ch
Cc: dhowells@redhat.com
Cc: julia.lawall@lip6.fr
Cc: konrad.wilk@oracle.com
Cc: linux-fbdev@vger.kernel.org
Cc: linux-pci@vger.kernel.org
Cc: luto@amacapital.net
Cc: mst@redhat.com
Cc: tomi.valkeinen@ti.com
Cc: toshi.kani@hp.com
Cc: vinod.koul@intel.com
Cc: xen-devel@lists.xensource.com
Link: http://lkml.kernel.org/r/1453516462-4844-1-git-send-email-mcgrof@do-not-panic.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2016-03-09 14:57:51 +01:00
..
Kconfig dma-mapping: always provide the dma_map_ops based implementation 2016-01-20 17:09:18 -08:00
Makefile drm/sti: Build monolithic driver 2015-11-03 13:04:54 +01:00
NOTES drm: sti: add bindings for DRM driver 2014-07-30 18:11:53 +02:00
sti_awg_utils.c drm/sti: remove redundant sign extensions 2015-11-03 13:04:55 +01:00
sti_awg_utils.h drm: sti: add DVO output connector 2014-12-30 15:08:16 +01:00
sti_compositor.c drm/sti: Build monolithic driver 2015-11-03 13:04:54 +01:00
sti_compositor.h drm/sti: rename files and functions 2015-08-03 14:25:06 +02:00
sti_crtc.c drm: Pass 'name' to drm_crtc_init_with_planes() 2015-12-11 09:12:44 +01:00
sti_crtc.h drm/irq: Use unsigned int pipe in public API 2015-10-06 12:57:47 +02:00
sti_cursor.c dma, mm/pat: Rename dma_*_writecombine() to dma_*_wc() 2016-03-09 14:57:51 +01:00
sti_cursor.h drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_drv.c drm/fb_cma_helper: Remove implicit call to disable_unused_functions 2016-01-15 11:16:15 +01:00
sti_drv.h drm/sti: Build monolithic driver 2015-11-03 13:04:54 +01:00
sti_dvo.c drm/sti: Build monolithic driver 2015-11-03 13:04:54 +01:00
sti_gdp.c dma, mm/pat: Rename dma_*_writecombine() to dma_*_wc() 2016-03-09 14:57:51 +01:00
sti_gdp.h drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_hda.c drm/sti: Drop bogus drm_mode_sort() call 2015-12-11 09:33:18 +01:00
sti_hdmi.c drm/sti: hdmi use of_get_i2c_adapter_by_node interface 2015-11-03 13:04:54 +01:00
sti_hdmi.h drm: sti: remove gpio for HDMI hot plug detection 2014-12-11 13:58:12 +01:00
sti_hdmi_tx3g0c55phy.c drm: sti: add HDMI driver 2014-07-30 19:24:55 +02:00
sti_hdmi_tx3g0c55phy.h drm: sti: add HDMI driver 2014-07-30 19:24:55 +02:00
sti_hdmi_tx3g4c28phy.c drm: sti: add HDMI driver 2014-07-30 19:24:55 +02:00
sti_hdmi_tx3g4c28phy.h drm: sti: add HDMI driver 2014-07-30 19:24:55 +02:00
sti_hqvdp.c dma, mm/pat: Rename dma_*_writecombine() to dma_*_wc() 2016-03-09 14:57:51 +01:00
sti_hqvdp_lut.h drm: sti: add HQVDP plane 2014-12-11 14:00:13 +01:00
sti_mixer.c drm/sti: set mixer background color through module param 2015-11-03 13:04:55 +01:00
sti_mixer.h drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_plane.c drm/sti: Do not export symbols 2015-11-03 13:04:54 +01:00
sti_plane.h drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_tvout.c drm: Pass 'name' to drm_encoder_init() 2015-12-11 09:13:20 +01:00
sti_vid.c drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_vid.h drm/sti: atomic crtc/plane update 2015-08-03 14:26:05 +02:00
sti_vtac.c drm/sti: Build monolithic driver 2015-11-03 13:04:54 +01:00
sti_vtg.c drm/sti: Do not export symbols 2015-11-03 13:04:54 +01:00
sti_vtg.h drm/sti: Use drm_crtc_vblank_*() API 2015-11-03 13:04:53 +01:00