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

Commit 8569bf0c authored by Jayant Shekhar's avatar Jayant Shekhar
Browse files

msm: mdss: Fix check for backlight update during continuous splash



If the cont_splash_enabled added with "&&" for backlight update
check then the unset_bl_level will be set 0 in all cases. Fix this
to add "||" as condition check instead of "&&".

Change-Id: I9365bd9b9beaada78b49e9e79046715f05ea5b72
Signed-off-by: default avatarJayant Shekhar <jshekhar@codeaurora.org>
parent 6c644c0f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1060,8 +1060,8 @@ void mdss_fb_set_backlight(struct msm_fb_data_type *mfd, u32 bkl_lvl)
	int ret = -EINVAL;
	bool bl_notify_needed = false;

	if (((mdss_fb_is_power_off(mfd) && mfd->dcm_state != DCM_ENTER)
		|| !mfd->bl_updated) && !IS_CALIB_MODE_BL(mfd) &&
	if ((((mdss_fb_is_power_off(mfd) && mfd->dcm_state != DCM_ENTER)
		|| !mfd->bl_updated) && !IS_CALIB_MODE_BL(mfd)) ||
		mfd->panel_info->cont_splash_enabled) {
		mfd->unset_bl_level = bkl_lvl;
		return;