Merge "msm: mdss: Do not apply bl scale if current back light is zero"
This commit is contained in:
commit
46c51a37b4
1 changed files with 4 additions and 2 deletions
|
@ -4495,8 +4495,10 @@ static int mdss_bl_scale_config(struct msm_fb_data_type *mfd,
|
||||||
mfd->bl_scale = data->scale;
|
mfd->bl_scale = data->scale;
|
||||||
pr_debug("update scale = %d\n", mfd->bl_scale);
|
pr_debug("update scale = %d\n", mfd->bl_scale);
|
||||||
|
|
||||||
/* update current backlight to use new scaling*/
|
/* Update current backlight to use new scaling, if it is not zero */
|
||||||
mdss_fb_set_backlight(mfd, curr_bl);
|
if (curr_bl)
|
||||||
|
mdss_fb_set_backlight(mfd, curr_bl);
|
||||||
|
|
||||||
mutex_unlock(&mfd->bl_lock);
|
mutex_unlock(&mfd->bl_lock);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue