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

Commit f1de61ef 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:set brightness to min_bl if brightness is less than min_bl."

parents 647c7b6c 2e5776fd
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -614,11 +614,11 @@ static void mdss_fb_scale_bl(struct msm_fb_data_type *mfd, u32 *bl_lvl)
		 * scaling fraction (x/1024)
		 */
		temp = (temp * mfd->bl_scale) / 1024;

	}
	/*if less than minimum level, use min level*/
		if (temp < mfd->bl_min_lvl)
	else if ((temp < mfd->bl_min_lvl) && (0 != temp))
		temp = mfd->bl_min_lvl;
	}

	pr_debug("output = %d", temp);

	(*bl_lvl) = temp;
@@ -633,6 +633,9 @@ void mdss_fb_set_backlight(struct msm_fb_data_type *mfd, u32 bkl_lvl)

	if (((!mfd->panel_power_on && mfd->dcm_state != DCM_ENTER)
		|| !mfd->bl_updated) && !IS_CALIB_MODE_BL(mfd)) {
			if (bkl_lvl < mfd->bl_min_lvl)
				mfd->unset_bl_level = mfd->bl_min_lvl;
			else
				mfd->unset_bl_level = bkl_lvl;
			return;
	} else {