diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2017-04-20 17:33:55 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-06-02 03:57:06 -0400 |
commit | d61ce7da02a3c52317474f2a15dd610ec652d513 (patch) | |
tree | 6d636eaea8b31258d17ad93df135b9321b508da8 /drivers/gpu/drm/omapdrm/omap_fb.c | |
parent | 57c22f7cc24ab6284d23d370929f2d452bb79729 (diff) |
drm: omapdrm: Rename GEM DMA sync functions
The omap_gem_cpu_sync() function operates at a page level, while the
omap_gem_dma_sync() function operates at a buffer level. Rename them to
omap_gem_cpu_sync_page() and omap_gem_dma_sync_buffer() respectively to
avoid confusion.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_fb.c')
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_fb.c b/drivers/gpu/drm/omapdrm/omap_fb.c index 2e8d77166e1f..ee615fa048a5 100644 --- a/drivers/gpu/drm/omapdrm/omap_fb.c +++ b/drivers/gpu/drm/omapdrm/omap_fb.c | |||
@@ -262,7 +262,7 @@ int omap_framebuffer_pin(struct drm_framebuffer *fb) | |||
262 | ret = omap_gem_pin(plane->bo, &plane->dma_addr); | 262 | ret = omap_gem_pin(plane->bo, &plane->dma_addr); |
263 | if (ret) | 263 | if (ret) |
264 | goto fail; | 264 | goto fail; |
265 | omap_gem_dma_sync(plane->bo, DMA_TO_DEVICE); | 265 | omap_gem_dma_sync_buffer(plane->bo, DMA_TO_DEVICE); |
266 | } | 266 | } |
267 | 267 | ||
268 | omap_fb->pin_count++; | 268 | omap_fb->pin_count++; |