Merge "msm: mdss: Do not apply bl scale if current back light is zero"

This commit is contained in:
Linux Build Service Account 2017-02-06 04:23:45 -08:00 committed by Gerrit - the friendly Code Review server
commit 46c51a37b4

View file

@ -4495,8 +4495,10 @@ static int mdss_bl_scale_config(struct msm_fb_data_type *mfd,
mfd->bl_scale = data->scale;
pr_debug("update scale = %d\n", mfd->bl_scale);
/* update current backlight to use new scaling*/
mdss_fb_set_backlight(mfd, curr_bl);
/* Update current backlight to use new scaling, if it is not zero */
if (curr_bl)
mdss_fb_set_backlight(mfd, curr_bl);
mutex_unlock(&mfd->bl_lock);
return ret;
}