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

Commit d89aeff9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 3044d3fa 7476cd69
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -4972,8 +4972,10 @@ static int mdss_bl_scale_config(struct msm_fb_data_type *mfd,
	pr_debug("update scale = %d, min_lvl = %d\n", mfd->bl_scale,
							mfd->bl_min_lvl);

	/* update current backlight to use new scaling*/
	/* 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;
}