drm/msm: Use drm_fb_helper_fill_info
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 26 Mar 2019 13:20:00 +0000 (14:20 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 27 Mar 2019 09:02:53 +0000 (10:02 +0100)
This will change the fb name from "msm" to "msmdrmfb".

v2: Rebase

v3: Fix subject prefix (Noralf)

Reviewed-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Rob Clark <robdclark@gmail.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: freedreno@lists.freedesktop.org
Link: https://patchwork.freedesktop.org/patch/msgid/20190326132008.11781-13-daniel.vetter@ffwll.ch
drivers/gpu/drm/msm/msm_fbdev.c

index c03e860ba737f8d56d0759c239b416086c66fb55..d088299babf3b1b4cf4023aae19092538b3f9504 100644 (file)
@@ -122,13 +122,9 @@ static int msm_fbdev_create(struct drm_fb_helper *helper,
        fbdev->fb = fb;
        helper->fb = fb;
 
-       fbi->par = helper;
        fbi->fbops = &msm_fb_ops;
 
-       strcpy(fbi->fix.id, "msm");
-
-       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);
 
        dev->mode_config.fb_base = paddr;