projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7604caa
)
drm/panel: simplify the return expression of rb070d30_panel_enable()
author
Liu Shixin
<liushixin2@huawei.com>
Tue, 15 Sep 2020 03:26:23 +0000
(11:26 +0800)
committer
Sam Ravnborg
<sam@ravnborg.org>
Sat, 17 Oct 2020 06:10:42 +0000
(08:10 +0200)
Simplify the return expression.
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link:
https://patchwork.freedesktop.org/patch/msgid/20200915032623.1772361-1-liushixin2@huawei.com
drivers/gpu/drm/panel/panel-ronbo-rb070d30.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c
b/drivers/gpu/drm/panel/panel-ronbo-rb070d30.c
index 535c8d1cca21c29df0327d426e3fd7a09bf4dc79..a3782830ae3c4ba0882dce04c3d4cc491f8add92 100644
(file)
--- a/
drivers/gpu/drm/panel/panel-ronbo-rb070d30.c
+++ b/
drivers/gpu/drm/panel/panel-ronbo-rb070d30.c
@@
-75,13
+75,8
@@
static int rb070d30_panel_unprepare(struct drm_panel *panel)
static int rb070d30_panel_enable(struct drm_panel *panel)
{
struct rb070d30_panel *ctx = panel_to_rb070d30_panel(panel);
- int ret;
- ret = mipi_dsi_dcs_exit_sleep_mode(ctx->dsi);
- if (ret)
- return ret;
-
- return 0;
+ return mipi_dsi_dcs_exit_sleep_mode(ctx->dsi);
}
static int rb070d30_panel_disable(struct drm_panel *panel)