drm/fbdev-dma: Use fbdev DMA helpers
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 7 Jul 2023 08:31:53 +0000 (10:31 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 24 Jul 2023 18:14:42 +0000 (20:14 +0200)
Use fbdev's DMA helpers for fbdev-dma. They are equivalent to the
previously used system-memory helpers, so no functional changes here.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230707083422.18691-3-tzimmermann@suse.de
drivers/gpu/drm/Kconfig
drivers/gpu/drm/drm_fbdev_dma.c

index 4f209e5..0d49966 100644 (file)
@@ -224,7 +224,7 @@ config DRM_TTM_HELPER
 config DRM_GEM_DMA_HELPER
        tristate
        depends on DRM
-       select FB_SYS_HELPERS if DRM_FBDEV_EMULATION
+       select FB_DMA_HELPERS if DRM_FBDEV_EMULATION
        help
          Choose this if you need the GEM DMA helper functions
 
index af44162..6db168f 100644 (file)
@@ -62,9 +62,9 @@ static const struct fb_ops drm_fbdev_dma_fb_ops = {
        .owner = THIS_MODULE,
        .fb_open = drm_fbdev_dma_fb_open,
        .fb_release = drm_fbdev_dma_fb_release,
-       __FB_DEFAULT_SYS_OPS_RDWR,
+       __FB_DEFAULT_DMA_OPS_RDWR,
        DRM_FB_HELPER_DEFAULT_OPS,
-       __FB_DEFAULT_SYS_OPS_DRAW,
+       __FB_DEFAULT_DMA_OPS_DRAW,
        .fb_mmap = drm_fbdev_dma_fb_mmap,
        .fb_destroy = drm_fbdev_dma_fb_destroy,
 };