]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: backend: Use drm_fb_cma_get_gem_addr() to get display memory
authorChen-Yu Tsai <wens@csie.org>
Sat, 14 Oct 2017 04:02:48 +0000 (12:02 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 16 Oct 2017 07:53:55 +0000 (09:53 +0200)
commitcff2192f807d442e498d43a20e54c6851cd4cb56
tree07f3500089578d4c72fe8e211fa04f64e51fd642
parent8270249fbeaf0a37250b0c533fd3613886ca3493
drm/sun4i: backend: Use drm_fb_cma_get_gem_addr() to get display memory

Commit 4636ce93d5b2 ("drm/fb-cma-helper: Add drm_fb_cma_get_gem_addr()")
adds a new helper, which covers fetching a drm_framebuffer's GEM object
and calculating the buffer address for a given plane.

This patch uses this helper to replace our own open coded version of the
same function.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171014040252.9621-4-wens@csie.org
drivers/gpu/drm/sun4i/sun4i_backend.c