drm/mipi-dbi: Use framebuffer dma-buf helpers
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 16 Jul 2021 14:07:57 +0000 (16:07 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 23 Jul 2021 18:17:59 +0000 (20:17 +0200)
commit08971eea06db3377ea1f9ff4f95a5df5f6c9aeb7
treebb1c32d18ce2a22596fd57f6eac91edca5edbc49
parentce724470a2e5f1261a1ae49a39f64d1cc676c3e8
drm/mipi-dbi: Use framebuffer dma-buf helpers

Replace dma_buf_begin_cpu_access() with drm_gem_fb_begin_cpu_access();
same for _end_cpu_access(). Remove some boiler-plate code. No functional
changes.

There's one left-over reference to the imported attachment that we
keep. GEM BOs with imported attachment are considered uncached and
enables special handling within the drm_fb_swab().

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210716140801.1215-4-tzimmermann@suse.de
drivers/gpu/drm/drm_mipi_dbi.c