]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/sysfb: Merge CRTC functions
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 1 Apr 2025 09:37:13 +0000 (11:37 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 7 Apr 2025 09:02:07 +0000 (11:02 +0200)
commitea86aba47c3a724ea18a26ad498c1835f087dc63
tree464466bf457821ec082732346d2bf5e85ad2e2c4
parent68ab3253df1312bc22257cc217d77cdaef14186a
drm/sysfb: Merge CRTC functions

Merge the CRTC functions of ofdrm and simpledrm. Replace the code
in each driver with the shared helpers. Set up callbacks with
initializer macros.

Ofdrm supports a gamma LUT, while simpledrm does not. So far ofdrm's
LUT size has been hard-coded in the driver CRTC's atomic_check helper.
Now pass the size of the LUT to the sysfb device. Ofdrm's custom
atomic_flush is still required to apply changes to the LUT. Simpledrm
passes a LUT size of 0, which disables the gamma LUT.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20250401094056.32904-11-tzimmermann@suse.de
drivers/gpu/drm/sysfb/drm_sysfb_helper.c
drivers/gpu/drm/sysfb/drm_sysfb_helper.h
drivers/gpu/drm/sysfb/ofdrm.c
drivers/gpu/drm/sysfb/simpledrm.c