summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraghavendra ambadas <rambad@codeaurora.org>2020-06-01 12:02:36 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2020-06-09 21:21:49 -0700
commit2cf04dbfc0848ec72cb1a956d9ea60803a18c2e3 (patch)
treea85a0acc0c90941fbea62f83547bd144c3ecf23b
parent26bf32af70775530b72189de1e43eeb25a9af177 (diff)
fbdev: msm: fix ret value while translating to mdp format
Fix return value for error case while converting from grayscale to mdp format, use integer instead of unsigned int. Change-Id: I5b5b529bfab566938a6c55844cd18813fad400b7 Signed-off-by: Raghavendra Ambadas <rambad@codeaurora.org> Signed-off-by: Vinoth Jayaram <c_vinoja@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/mdss_fb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/fbdev/msm/mdss_fb.c b/drivers/video/fbdev/msm/mdss_fb.c
index 31f4ef83b8b3..a7f21c3a4f18 100644
--- a/drivers/video/fbdev/msm/mdss_fb.c
+++ b/drivers/video/fbdev/msm/mdss_fb.c
@@ -3992,7 +3992,7 @@ static int mdss_fb_set_par(struct fb_info *info)
{
struct msm_fb_data_type *mfd = (struct msm_fb_data_type *)info->par;
struct fb_var_screeninfo *var = &info->var;
- int old_imgType, old_format;
+ int old_imgType, old_format, out_format;
int ret = 0;
ret = mdss_fb_pan_idle(mfd);
@@ -4076,9 +4076,9 @@ static int mdss_fb_set_par(struct fb_info *info)
mfd->fbi->var.yres) * mfd->fb_page;
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)) {
+ out_format = mdss_grayscale_to_mdp_format(var->grayscale);
+ if (!IS_ERR_VALUE(out_format)) {
+ mfd->panel_info->out_format = out_format;
if (old_format != mfd->panel_info->out_format)
mfd->panel_reconfig = true;
}