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

drm/komeda: Pass along the format info from .fb_create() to drm_helper_mode_fill_fb_struct()

Plumb the format info from .fb_create() all the way to
drm_helper_mode_fill_fb_struct() to avoid the redundant
lookup.

Cc: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250701090722.13645-15-ville.syrjala@linux.intel.com

+1 -1
+1 -1
drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c
··· 178 178 return ERR_PTR(-EINVAL); 179 179 } 180 180 181 - drm_helper_mode_fill_fb_struct(dev, &kfb->base, NULL, mode_cmd); 181 + drm_helper_mode_fill_fb_struct(dev, &kfb->base, info, mode_cmd); 182 182 183 183 if (kfb->base.modifier) 184 184 ret = komeda_fb_afbc_size_check(kfb, file, mode_cmd);