Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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

+2 -2
+2 -2
drivers/gpu/drm/tiny/st7586.c
··· 16 16 #include <drm/drm_damage_helper.h> 17 17 #include <drm/drm_drv.h> 18 18 #include <drm/drm_fb_dma_helper.h> 19 - #include <drm/drm_fbdev_generic.h> 19 + #include <drm/drm_fbdev_dma.h> 20 20 #include <drm/drm_format_helper.h> 21 21 #include <drm/drm_framebuffer.h> 22 22 #include <drm/drm_gem_atomic_helper.h> ··· 371 371 372 372 spi_set_drvdata(spi, drm); 373 373 374 - drm_fbdev_generic_setup(drm, 0); 374 + drm_fbdev_dma_setup(drm, 0); 375 375 376 376 return 0; 377 377 }