Skip to content

Commit 7a46d03

Browse files
committed
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 <[email protected]> Reviewed-by: Thomas Zimmermann <[email protected]> Reviewed-by: Liviu Dudau <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 800df9e commit 7a46d03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ komeda_fb_create(struct drm_device *dev, struct drm_file *file,
178178
return ERR_PTR(-EINVAL);
179179
}
180180

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);
182182

183183
if (kfb->base.modifier)
184184
ret = komeda_fb_afbc_size_check(kfb, file, mode_cmd);

0 commit comments

Comments
 (0)