drm/tiny/st7586: Use fbdev-dma
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 19 Apr 2024 08:29:33 +0000 (10:29 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 2 May 2024 09:33:31 +0000 (11:33 +0200)
Implement fbdev emulation with fbdev-dma. Fbdev-dma now supports
damage handling, which is required by st7586. Avoids the overhead of
fbdev-generic's additional shadow buffering. No functional changes.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: David Lechner <david@lechnology.com>
Acked-by: David Lechner <david@lechnology.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240419083331.7761-41-tzimmermann@suse.de
drivers/gpu/drm/tiny/st7586.c

index c4ad8340180e4ce74e1d8e559e26aa96057d695b..b9c6ed352182fd5873fb89ae47c5c5f299e79fad 100644 (file)
@@ -16,7 +16,7 @@
 #include <drm/drm_damage_helper.h>
 #include <drm/drm_drv.h>
 #include <drm/drm_fb_dma_helper.h>
-#include <drm/drm_fbdev_generic.h>
+#include <drm/drm_fbdev_dma.h>
 #include <drm/drm_format_helper.h>
 #include <drm/drm_framebuffer.h>
 #include <drm/drm_gem_atomic_helper.h>
@@ -371,7 +371,7 @@ static int st7586_probe(struct spi_device *spi)
 
        spi_set_drvdata(spi, drm);
 
-       drm_fbdev_generic_setup(drm, 0);
+       drm_fbdev_dma_setup(drm, 0);
 
        return 0;
 }