]> Gentwo Git Trees - linux/.git/commit
video: screen_info: Add pixel-format helper for linear framebuffers
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 14 Jul 2025 15:13:02 +0000 (17:13 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Tue, 26 Aug 2025 07:54:16 +0000 (09:54 +0200)
commitd6d05e2af796ca25094f80a73d8841505d54368b
tree62c6032c52a53ee48f24cb13a52798c14e228065
parentcff5fb82733c4f1acda458ffd2bb5c948fb59bd6
video: screen_info: Add pixel-format helper for linear framebuffers

Add screen_info_pixel_format(), which converts a screen_info's
information about the color format to struct pixel_format. The encoding
within the screen_info structure is complex and therefore prone to
errors. Later patches will convert callers to use the pixel format.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20250714151513.309475-3-tzimmermann@suse.de
drivers/video/screen_info_generic.c
include/linux/screen_info.h