Skip to content

Commit

Permalink
drm/rockchip: Use drm_fb_helper_fill_info
Browse files Browse the repository at this point in the history
This will set an fb name for the first time!

v2: Rebase

Reviewed-by: Noralf Trønnes <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Reviewed-by: Heiko Stuebner <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Cc: Sandy Huang <[email protected]>
Cc: "Heiko Stübner" <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
danvet committed Mar 27, 2019
1 parent 19d8a4e commit 668447e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,10 @@ static int rockchip_drm_fbdev_create(struct drm_fb_helper *helper,
goto out;
}

fbi->par = helper;
fbi->fbops = &rockchip_drm_fbdev_ops;

fb = helper->fb;
drm_fb_helper_fill_fix(fbi, fb->pitches[0], fb->format->depth);
drm_fb_helper_fill_var(fbi, helper, sizes->fb_width, sizes->fb_height);
drm_fb_helper_fill_info(fbi, helper, sizes);

offset = fbi->var.xoffset * bytes_per_pixel;
offset += fbi->var.yoffset * fb->pitches[0];
Expand Down

0 comments on commit 668447e

Please sign in to comment.