Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm: Make passing of format info to drm_helper_mode_fill_fb_struct() mandatory

Now that everyone passes along the format info to
drm_helper_mode_fill_fb_struct() we can make this behaviour
mandatory and drop the extra lookup.

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250701090722.13645-20-ville.syrjala@linux.intel.com

+1 -2
+1 -2
drivers/gpu/drm/drm_modeset_helper.c
··· 88 88 int i; 89 89 90 90 fb->dev = dev; 91 - fb->format = info ? : drm_get_format_info(dev, mode_cmd->pixel_format, 92 - mode_cmd->modifier[0]); 91 + fb->format = info; 93 92 fb->width = mode_cmd->width; 94 93 fb->height = mode_cmd->height; 95 94 for (i = 0; i < 4; i++) {