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

Commit 5ff7c910 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 update backlight with max value"

parents 999b6cec 440f56ab
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5825,7 +5825,8 @@ int mdss_mdp_display_commit(struct mdss_mdp_ctl *ctl, void *arg,

	/* update backlight in commit */
	if (ctl->intf_type == MDSS_INTF_DSI && !ctl->is_video_mode &&
	    ctl->mfd && ctl->mfd->bl_extn_level > 0) {
			ctl->mfd && ctl->mfd->bl_extn_level > 0 &&
			ctl->mfd->bl_extn_level != U64_MAX) {
		if (!IS_CALIB_MODE_BL(ctl->mfd) && (!ctl->mfd->ext_bl_ctrl ||
						!ctl->mfd->bl_level)) {
			mutex_lock(&ctl->mfd->bl_lock);