Commit 6a6fc457 authored by Guido Günther's avatar Guido Günther Committed by Sam Ravnborg

drm/panel: jh057n00900: Move mipi_dsi_dcs_set_display_off to disable()

This makes it symmetric with the panel init happening in enable().
Signed-off-by: default avatarGuido Günther <agx@sigxcpu.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/e2c31d34ce1f917065d590297e5115a4ca954874.1564146727.git.agx@sigxcpu.org
parent 66a4e0ef
...@@ -158,19 +158,19 @@ static int jh057n_enable(struct drm_panel *panel) ...@@ -158,19 +158,19 @@ static int jh057n_enable(struct drm_panel *panel)
static int jh057n_disable(struct drm_panel *panel) static int jh057n_disable(struct drm_panel *panel)
{ {
struct jh057n *ctx = panel_to_jh057n(panel); struct jh057n *ctx = panel_to_jh057n(panel);
struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
return backlight_disable(ctx->backlight); backlight_disable(ctx->backlight);
return mipi_dsi_dcs_set_display_off(dsi);
} }
static int jh057n_unprepare(struct drm_panel *panel) static int jh057n_unprepare(struct drm_panel *panel)
{ {
struct jh057n *ctx = panel_to_jh057n(panel); struct jh057n *ctx = panel_to_jh057n(panel);
struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
if (!ctx->prepared) if (!ctx->prepared)
return 0; return 0;
mipi_dsi_dcs_set_display_off(dsi);
regulator_disable(ctx->iovcc); regulator_disable(ctx->iovcc);
regulator_disable(ctx->vcc); regulator_disable(ctx->vcc);
ctx->prepared = false; ctx->prepared = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment