Skip to content

Commit 41ab92d

Browse files
committed
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 <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 3f019d7 commit 41ab92d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/drm_modeset_helper.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ void drm_helper_mode_fill_fb_struct(struct drm_device *dev,
8888
int i;
8989

9090
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;
9392
fb->width = mode_cmd->width;
9493
fb->height = mode_cmd->height;
9594
for (i = 0; i < 4; i++) {

0 commit comments

Comments
 (0)