Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa6b2b6c authored by Seung-Woo Kim's avatar Seung-Woo Kim Committed by Inki Dae
Browse files

drm/exynos: removed meaningless parameter from fbdev update



drm_framebuffer already has width and height so they are meaningless as
parameters when updating fb_info.

Signed-off-by: default avatarSeung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
parent 84b46990
Loading
Loading
Loading
Loading
+5 −9
Original line number Original line Diff line number Diff line
@@ -85,15 +85,13 @@ static struct fb_ops exynos_drm_fb_ops = {
};
};


static int exynos_drm_fbdev_update(struct drm_fb_helper *helper,
static int exynos_drm_fbdev_update(struct drm_fb_helper *helper,
				     struct drm_framebuffer *fb,
				     struct drm_framebuffer *fb)
				     unsigned int fb_width,
				     unsigned int fb_height)
{
{
	struct fb_info *fbi = helper->fbdev;
	struct fb_info *fbi = helper->fbdev;
	struct drm_device *dev = helper->dev;
	struct drm_device *dev = helper->dev;
	struct exynos_drm_fbdev *exynos_fb = to_exynos_fbdev(helper);
	struct exynos_drm_fbdev *exynos_fb = to_exynos_fbdev(helper);
	struct exynos_drm_buf_entry *entry;
	struct exynos_drm_buf_entry *entry;
	unsigned int size = fb_width * fb_height * (fb->bits_per_pixel >> 3);
	unsigned int size = fb->width * fb->height * (fb->bits_per_pixel >> 3);
	unsigned long offset;
	unsigned long offset;


	DRM_DEBUG_KMS("%s\n", __FILE__);
	DRM_DEBUG_KMS("%s\n", __FILE__);
@@ -101,7 +99,7 @@ static int exynos_drm_fbdev_update(struct drm_fb_helper *helper,
	exynos_fb->fb = fb;
	exynos_fb->fb = fb;


	drm_fb_helper_fill_fix(fbi, fb->pitch, fb->depth);
	drm_fb_helper_fill_fix(fbi, fb->pitch, fb->depth);
	drm_fb_helper_fill_var(fbi, helper, fb_width, fb_height);
	drm_fb_helper_fill_var(fbi, helper, fb->width, fb->height);


	entry = exynos_drm_fb_get_buf(fb);
	entry = exynos_drm_fb_get_buf(fb);
	if (!entry) {
	if (!entry) {
@@ -171,8 +169,7 @@ static int exynos_drm_fbdev_create(struct drm_fb_helper *helper,
		goto out;
		goto out;
	}
	}


	ret = exynos_drm_fbdev_update(helper, helper->fb, sizes->fb_width,
	ret = exynos_drm_fbdev_update(helper, helper->fb);
			sizes->fb_height);
	if (ret < 0)
	if (ret < 0)
		fb_dealloc_cmap(&fbi->cmap);
		fb_dealloc_cmap(&fbi->cmap);


@@ -235,8 +232,7 @@ static int exynos_drm_fbdev_recreate(struct drm_fb_helper *helper,
	}
	}


	helper->fb = exynos_fbdev->fb;
	helper->fb = exynos_fbdev->fb;
	return exynos_drm_fbdev_update(helper, helper->fb, sizes->fb_width,
	return exynos_drm_fbdev_update(helper, helper->fb);
			sizes->fb_height);
}
}


static int exynos_drm_fbdev_probe(struct drm_fb_helper *helper,
static int exynos_drm_fbdev_probe(struct drm_fb_helper *helper,