From: Thomas Zimmermann Date: Mon, 14 Jul 2025 15:13:02 +0000 (+0200) Subject: video: screen_info: Add pixel-format helper for linear framebuffers X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d6d05e2af796ca25094f80a73d8841505d54368b;p=users%2Fhch%2Fmisc.git 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 Reviewed-by: Javier Martinez Canillas Link: https://lore.kernel.org/r/20250714151513.309475-3-tzimmermann@suse.de --- diff --git a/drivers/video/screen_info_generic.c b/drivers/video/screen_info_generic.c index 900e9386eceb..763adbba71cb 100644 --- a/drivers/video/screen_info_generic.c +++ b/drivers/video/screen_info_generic.c @@ -5,6 +5,8 @@ #include #include +#include