]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/sysfb: Generalize pixel-format matching
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 17 Feb 2026 15:56:20 +0000 (16:56 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 20 Feb 2026 13:38:23 +0000 (14:38 +0100)
commitb3728905dca29ea4e00c0587f27c3a637b13b2d8
treebc24a11dc730e101e8b362c5de26f8a5fce0102f
parent27fc52b5505a3acca96b884a4bf1345344e5a566
drm/sysfb: Generalize pixel-format matching

Provide drm_sysfb_get_format(), a helper that finds a specific DRM
format from a list of pixel formats. The new function builds upon
drm_sysfb_get_format_si(), which finds the DRM format from a given
instance of struct screen_info. Now get the screen_info's pixel format
in the caller. Allows for matching pixel formats in drivers without
screen_info.

Convert the callers in efidrm and vesadrm to the new interface.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Julius Werner <jwerner@chromium.org>
Link: https://patch.msgid.link/20260217155836.96267-11-tzimmermann@suse.de
drivers/gpu/drm/sysfb/drm_sysfb.c
drivers/gpu/drm/sysfb/drm_sysfb_helper.h
drivers/gpu/drm/sysfb/drm_sysfb_screen_info.c
drivers/gpu/drm/sysfb/efidrm.c
drivers/gpu/drm/sysfb/vesadrm.c