projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ac6929
)
drm/panel: panasonic-vvx10f034n00: Fix wuxga_nt_panel_disable() return value
author
Sean Paul
<
[email protected]
>
Tue, 16 Jan 2018 22:22:10 +0000
(17:22 -0500)
committer
Sean Paul
<
[email protected]
>
Wed, 17 Jan 2018 17:17:19 +0000
(12:17 -0500)
Return value for mipi_dsi_shutdown_peripheral() is unchecked.
Check it and return any errors if they come up. Even if
mipi_dsi_shutdown_peripheral() fails, continue attempting to
disable.
Cc: Philippe Cornu <
[email protected]
>
Reviewed-by: Philippe Cornu <
[email protected]
>
Signed-off-by: Sean Paul <
[email protected]
>
Link:
https://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c
b/drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c
index 7f915f706fa641c165881d1113368e3f2a461ff8..91dc5a6b14f9c773abb4a0faf49aeb63ce43a5fe 100644
(file)
--- a/
drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c
+++ b/
drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c
@@
-72,11
+72,12
@@
static int wuxga_nt_panel_on(struct wuxga_nt_panel *wuxga_nt)
static int wuxga_nt_panel_disable(struct drm_panel *panel)
{
struct wuxga_nt_panel *wuxga_nt = to_wuxga_nt_panel(panel);
+ int ret;
if (!wuxga_nt->enabled)
return 0;
- mipi_dsi_shutdown_peripheral(wuxga_nt->dsi);
+
ret =
mipi_dsi_shutdown_peripheral(wuxga_nt->dsi);
if (wuxga_nt->backlight) {
wuxga_nt->backlight->props.power = FB_BLANK_POWERDOWN;
@@
-86,7
+87,7
@@
static int wuxga_nt_panel_disable(struct drm_panel *panel)
wuxga_nt->enabled = false;
- return
0
;
+ return
ret
;
}
static int wuxga_nt_panel_unprepare(struct drm_panel *panel)