summaryrefslogtreecommitdiff
path: root/drivers/gpu
diff options
context:
space:
mode:
authorDhaval Patel <pdhaval@codeaurora.org>2016-08-11 12:18:04 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2016-08-11 12:18:04 -0700
commit3ebc1398a935371e24bf528d652bca4b32aa3057 (patch)
tree5906d025b2446b40a05a0b7f4482a2042012cdb7 /drivers/gpu
parenta7e7d08a9bf598881ba51ead85e453feb2d7064b (diff)
parentdaa016439fa6fc3d01242e41ad5c9039d69e72c5 (diff)
Merge "drm/dsi: turn off the wled backlight with panel power off" into dev/msm-4.4-drm_kms
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/msm/dsi-staging/dsi_panel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/dsi-staging/dsi_panel.c b/drivers/gpu/drm/msm/dsi-staging/dsi_panel.c
index fbe6f1b22a29..2335c308551b 100644
--- a/drivers/gpu/drm/msm/dsi-staging/dsi_panel.c
+++ b/drivers/gpu/drm/msm/dsi-staging/dsi_panel.c
@@ -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",