[PATCH 3/3] drm/sysfb: Share helpers for screen_info validation

Javier Martinez Canillas javierm at redhat.com
Wed Apr 9 12:07:58 UTC 2025


Thomas Zimmermann <tzimmermann at suse.de> writes:

> Share efidrm's and vesadrm's validation of struct screen_info in
> shared helpers. Update the drivers.
>
> Most validation helpers test individual values against limits and
> can be shared as they are. For color formats, a common helper looks
> up the correct DRM format info from a driver-provided list of color
> formats.
>
> These screen_info helpers are only available if CONFIG_SCREEN_INFO
> has been selected, as done by efidrm and vesadrm.
>
> Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
> ---

Reviewed-by: Javier Martinez Canillas <javierm at redhat.com>

-- 
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat



More information about the dri-devel mailing list