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

Commit 328cbeee authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/dsi: turn off the wled backlight with panel power off" into msm-4.8

parents f62d03ed 00715485
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -238,7 +238,6 @@ static int dsi_panel_power_off(struct dsi_panel *panel)
	if (rc)
		pr_err("[%s] failed to enable vregs, rc=%d\n", panel->name, rc);

	/* TODO:  backlight */
	return rc;
}
static int dsi_panel_tx_cmd_set(struct dsi_panel *panel,
@@ -1858,6 +1857,8 @@ int dsi_panel_pre_disable(struct dsi_panel *panel)

	mutex_lock(&panel->panel_lock);

	/* TODO:  hack to disable backlight; */
	led_trigger_event(panel->bl_config.wled, 0x0);
	rc = dsi_panel_tx_cmd_set(panel, DSI_CMD_SET_PRE_OFF);
	if (rc) {
		pr_err("[%s] failed to send DSI_CMD_SET_PRE_OFF cmds, rc=%d\n",