File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -59,35 +59,28 @@ static inline struct wuxga_nt_panel *to_wuxga_nt_panel(struct drm_panel *panel)
59
59
60
60
static int wuxga_nt_panel_on (struct wuxga_nt_panel * wuxga_nt )
61
61
{
62
- struct mipi_dsi_device * dsi = wuxga_nt -> dsi ;
63
- int ret ;
64
-
65
- ret = mipi_dsi_turn_on_peripheral (dsi );
66
- if (ret < 0 )
67
- return ret ;
68
-
69
- return 0 ;
62
+ return mipi_dsi_turn_on_peripheral (wuxga_nt -> dsi );
70
63
}
71
64
72
65
static int wuxga_nt_panel_disable (struct drm_panel * panel )
73
66
{
74
67
struct wuxga_nt_panel * wuxga_nt = to_wuxga_nt_panel (panel );
75
- int ret ;
68
+ int mipi_ret , bl_ret = 0 ;
76
69
77
70
if (!wuxga_nt -> enabled )
78
71
return 0 ;
79
72
80
- ret = mipi_dsi_shutdown_peripheral (wuxga_nt -> dsi );
73
+ mipi_ret = mipi_dsi_shutdown_peripheral (wuxga_nt -> dsi );
81
74
82
75
if (wuxga_nt -> backlight ) {
83
76
wuxga_nt -> backlight -> props .power = FB_BLANK_POWERDOWN ;
84
77
wuxga_nt -> backlight -> props .state |= BL_CORE_FBBLANK ;
85
- backlight_update_status (wuxga_nt -> backlight );
78
+ bl_ret = backlight_update_status (wuxga_nt -> backlight );
86
79
}
87
80
88
81
wuxga_nt -> enabled = false;
89
82
90
- return ret ;
83
+ return mipi_ret ? mipi_ret : bl_ret ;
91
84
}
92
85
93
86
static int wuxga_nt_panel_unprepare (struct drm_panel * panel )
You can’t perform that action at this time.
0 commit comments