drm/mipi-dbi: Remove dependency on GEM CMA helper library
authorThomas Zimmermann <tzimmermann@suse.de>
Sat, 6 Nov 2021 19:35:08 +0000 (20:35 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 30 Nov 2021 10:09:53 +0000 (11:09 +0100)
commitc47160d8edcdb4d9fb2b333569a3fc13fca5db43
tree7661671bc229b741c5daca30098b0aee5075b6d9
parente580ea25c08d9e89593bcf80640e29108f0542cb
drm/mipi-dbi: Remove dependency on GEM CMA helper library

The MIPI DBI helpers access struct drm_gem_cma_object.vaddr in a
few places. Replace all instances with the correct generic GEM
functions. Use drm_gem_fb_vmap() for mapping a framebuffer's GEM
objects and drm_gem_fb_vunmap() for unmapping them. This removes
the dependency on CMA helpers within MIPI DBI.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20211106193509.17472-2-tzimmermann@suse.de
drivers/gpu/drm/drm_mipi_dbi.c