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

Commit 6b9bcc74 authored by Shuo Yan's avatar Shuo Yan
Browse files

msm: mdss: Turn off backlight while power off



Turn off the backlight while system power off as it
could show white flicker depending on the panel.

Change-Id: I282b7f7e716e09ed7700bcfe3941ca4c880c604f
Signed-off-by: default avatarShuo Yan <shuoy@codeaurora.org>
parent c21c3baf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -523,6 +523,9 @@ static int mdp3_ctrl_off(struct msm_fb_data_type *mfd)
	panel = mdp3_session->panel;
	mutex_lock(&mdp3_session->lock);

	if (panel && panel->set_backlight)
		panel->set_backlight(panel, 0);

	if (!mdp3_session->status) {
		pr_debug("fb%d is off already", mfd->index);
		goto off_error;