OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04eedeb
)
drm/panel: jh057n00900: Use drm_panel_{unprepare, disable} consistently
author
Guido Günther
<agx@sigxcpu.org>
Fri, 26 Jul 2019 13:14:39 +0000
(15:14 +0200)
committer
Sam Ravnborg
<sam@ravnborg.org>
Fri, 26 Jul 2019 18:40:05 +0000
(20:40 +0200)
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: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/a37dd5083462064f437ff62fd84e6576d8a7c8dc.1564146727.git.agx@sigxcpu.org
drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c
b/drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c
index
1037a20
..
b910992
100644
(file)
--- a/
drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c
+++ b/
drivers/gpu/drm/panel/panel-rocktech-jh057n00900.c
@@
-372,12
+372,12
@@
static void jh057n_shutdown(struct mipi_dsi_device *dsi)
struct jh057n *ctx = mipi_dsi_get_drvdata(dsi);
int ret;
- ret =
jh057n
_unprepare(&ctx->panel);
+ ret =
drm_panel
_unprepare(&ctx->panel);
if (ret < 0)
DRM_DEV_ERROR(&dsi->dev, "Failed to unprepare panel: %d\n",
ret);
- ret =
jh057n
_disable(&ctx->panel);
+ ret =
drm_panel
_disable(&ctx->panel);
if (ret < 0)
DRM_DEV_ERROR(&dsi->dev, "Failed to disable panel: %d\n",
ret);