mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
drm/panel: ronbo-rb070d30: Use mipi_dsi_*_multi() functions
Replace the deprecated mipi_dsi_dcs_exit_sleep_mode() and mipi_dsi_dcs_enter_sleep_mode() calls in the enable and disable callbacks with their _multi variants, as suggested in Documentation/gpu/todo.rst. The callbacks retain the same return values. The new helpers additionally log an error if the command fails. Signed-off-by: Hsieh Hung-En <hungen3108@gmail.com> Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patch.msgid.link/20260929080143.559685-1-hungen3108@gmail.com
This commit is contained in:
parent
f112778104
commit
f5c3d702f4
|
|
@ -75,15 +75,19 @@ 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);
|
||||
struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi };
|
||||
|
||||
return mipi_dsi_dcs_exit_sleep_mode(ctx->dsi);
|
||||
mipi_dsi_dcs_exit_sleep_mode_multi(&dsi_ctx);
|
||||
return dsi_ctx.accum_err;
|
||||
}
|
||||
|
||||
static int rb070d30_panel_disable(struct drm_panel *panel)
|
||||
{
|
||||
struct rb070d30_panel *ctx = panel_to_rb070d30_panel(panel);
|
||||
struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi };
|
||||
|
||||
return mipi_dsi_dcs_enter_sleep_mode(ctx->dsi);
|
||||
mipi_dsi_dcs_enter_sleep_mode_multi(&dsi_ctx);
|
||||
return dsi_ctx.accum_err;
|
||||
}
|
||||
|
||||
/* Default timings */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user