Commit 82b78cad authored by Guido Günther's avatar Guido Günther Committed by Sam Ravnborg

drm/panel: jh057n00900: Use drm_panel_{unprepare, disable} consistently

We were already using the generic functions in our debugfs code, do the
same in jh057n_shutdown. This was suggested by Sam Ravnborg.
Signed-off-by: default avatarGuido Günther <agx@sigxcpu.org>
Reviewed-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/a37dd5083462064f437ff62fd84e6576d8a7c8dc.1564146727.git.agx@sigxcpu.org
parent 04eedeb4
...@@ -372,12 +372,12 @@ static void jh057n_shutdown(struct mipi_dsi_device *dsi) ...@@ -372,12 +372,12 @@ static void jh057n_shutdown(struct mipi_dsi_device *dsi)
struct jh057n *ctx = mipi_dsi_get_drvdata(dsi); struct jh057n *ctx = mipi_dsi_get_drvdata(dsi);
int ret; int ret;
ret = jh057n_unprepare(&ctx->panel); ret = drm_panel_unprepare(&ctx->panel);
if (ret < 0) if (ret < 0)
DRM_DEV_ERROR(&dsi->dev, "Failed to unprepare panel: %d\n", DRM_DEV_ERROR(&dsi->dev, "Failed to unprepare panel: %d\n",
ret); ret);
ret = jh057n_disable(&ctx->panel); ret = drm_panel_disable(&ctx->panel);
if (ret < 0) if (ret < 0)
DRM_DEV_ERROR(&dsi->dev, "Failed to disable panel: %d\n", DRM_DEV_ERROR(&dsi->dev, "Failed to disable panel: %d\n",
ret); ret);
......
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