From: Thomas Zimmermann Date: Fri, 19 Apr 2024 08:29:33 +0000 (+0200) Subject: drm/tiny/st7586: Use fbdev-dma X-Git-Tag: v6.11-rc1~141^2~24^2~201 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=85c8e3ec806b043b449d5646bae4eb8f40acb45d;p=thirdparty%2Flinux.git drm/tiny/st7586: Use fbdev-dma 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 Cc: David Lechner Acked-by: David Lechner Link: https://patchwork.freedesktop.org/patch/msgid/20240419083331.7761-41-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/tiny/st7586.c b/drivers/gpu/drm/tiny/st7586.c index c4ad8340180e4..b9c6ed352182f 100644 --- a/drivers/gpu/drm/tiny/st7586.c +++ b/drivers/gpu/drm/tiny/st7586.c @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include #include @@ -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; }