diff options
| author | Venkata Prahlad Valluru <vvalluru@codeaurora.org> | 2019-08-14 20:33:26 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-03-03 02:31:43 -0800 |
| commit | 46b20db2ce8fa40fb4e85fe206695d03365a12ca (patch) | |
| tree | e483d1a6e71461b18fa21732b566b88e87833465 | |
| parent | 12d6f65b74cf94a9056cdd3303c7790ed327ca38 (diff) | |
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: Venkata Prahlad Valluru <vvalluru@codeaurora.org>
Signed-off-by: Ramendra Kumar <ramendra@codeaurora.org>
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_fb.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/video/fbdev/msm/mdss_fb.c b/drivers/video/fbdev/msm/mdss_fb.c index 58478b97b81a..31f4ef83b8b3 100644 --- a/drivers/video/fbdev/msm/mdss_fb.c +++ b/drivers/video/fbdev/msm/mdss_fb.c @@ -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; } |
