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

Commit 5812ced0 authored by Carl Vanderlip's avatar Carl Vanderlip
Browse files

Revert "msm: mdss:set brightness to min_bl if brightness is less than min_bl."



Backlight should not be limited to be above a minimum level in the
backlight scale function. Nor should it be limited for all backlight
drivers (should be implemented in the culprit panel's set_backlight func).

This reverts commit 2e5776fd

Change-Id: Idcbf26eb3babb2a29964b9c7fb8e95aa31a8c5b8
Signed-off-by: default avatarCarl Vanderlip <carlv@codeaurora.org>
parent 0c313f7c
Loading
Loading
Loading
Loading
+6 −9
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*/
	else if ((temp < mfd->bl_min_lvl) && (0 != temp))
		if (temp < mfd->bl_min_lvl)
			temp = mfd->bl_min_lvl;

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

	(*bl_lvl) = temp;
@@ -633,9 +633,6 @@ 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 {