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

Commit c29d8949 authored by Benet Clark's avatar Benet Clark
Browse files

msm: mdss: Fix error in BL linearity inverse LUT check



Associate the maximum index for the BL linearity inverse LUT with the
table size and not the maximum backlight value

Change-Id: I35fb276f8f1cc6be3be158fa25e6442be438cbf0
Signed-off-by: default avatarBenet Clark <benetc@codeaurora.org>
parent 0dcf4ed8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3973,8 +3973,7 @@ static void pp_ad_calc_worker(struct work_struct *work)
						MDSS_MDP_REG_AD_BL_OUT);
				if (ad->state & PP_AD_STATE_BL_LIN) {
					bl = bl >> ad->bl_bright_shift;
					bl = min_t(u32, bl,
						MDSS_MAX_BL_BRIGHTNESS);
					bl = min_t(u32, bl, (AD_BL_LIN_LEN-1));
					bl = ad->bl_lin_inv[bl];
					bl = bl << ad->bl_bright_shift;
				}