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

Commit ef302d5b authored by Venkata Prahlad Valluru's avatar Venkata Prahlad Valluru
Browse files

msm: mdss: fb: fix panel reconfiguration check for format change



Previously output_format is not updated. Update
the new output_format in panel_info.

Change-Id: I8ee76a9fabb5d2a9aa93d5c14deeeef9b26ba78b
Signed-off-by: default avatarVenkata Prahlad Valluru <vvalluru@codeaurora.org>
parent a01ee231
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -4075,8 +4075,10 @@ static int mdss_fb_set_par(struct fb_info *info)
		mfd->fbi->fix.smem_len = PAGE_ALIGN(mfd->fbi->fix.line_length *
				mfd->fbi->var.yres) * mfd->fb_page;

	old_format = mdss_grayscale_to_mdp_format(var->grayscale);
	if (!IS_ERR_VALUE(old_format)) {
	old_format = mfd->panel_info->out_format;
	mfd->panel_info->out_format =
			mdss_grayscale_to_mdp_format(var->grayscale);
	if (!IS_ERR_VALUE(mfd->panel_info->out_format)) {
		if (old_format != mfd->panel_info->out_format)
			mfd->panel_reconfig = true;
	}