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

Commit 935c87f6 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: Update ad_bl_level on first set backlight call"

parents 271ae661 546c1cab
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2218,6 +2218,8 @@ static int pp_ad_calc_bl(struct msm_fb_data_type *mfd, int bl_in, int *bl_out,
	}

	mutex_lock(&ad->lock);
	if (!mfd->ad_bl_level)
		mfd->ad_bl_level = bl_in;
	if (!(ad->state & PP_AD_STATE_RUN)) {
		pr_debug("AD is not running.\n");
		mutex_unlock(&ad->lock);