mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 10:31:33 -04:00
drm/panel: osd101t2587: migrate to newer mipi_dsi* functions
Migrate osd101t2587-53ts panel driver from deprecated mipi_dsi* functions to their *_multi variants for improved error handling, as specified in the GPU subsystem TODO list. Link: https://docs.kernel.org/gpu/todo.html#transition-away-from-using-deprecated-mipi-dsi-functions Signed-off-by: Robert-Andrei Mercea <robertandreimercea@gmail.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patch.msgid.link/20260720115126.666363-1-robertandreimercea@gmail.com
This commit is contained in:
committed by
Neil Armstrong
parent
9499d3bc41
commit
ab3d527aaa
@@ -32,11 +32,11 @@ static inline struct osd101t2587_panel *ti_osd_panel(struct drm_panel *panel)
|
||||
static int osd101t2587_panel_disable(struct drm_panel *panel)
|
||||
{
|
||||
struct osd101t2587_panel *osd101t2587 = ti_osd_panel(panel);
|
||||
int ret;
|
||||
struct mipi_dsi_multi_context ctx = { .dsi = osd101t2587->dsi };
|
||||
|
||||
ret = mipi_dsi_shutdown_peripheral(osd101t2587->dsi);
|
||||
mipi_dsi_shutdown_peripheral_multi(&ctx);
|
||||
|
||||
return ret;
|
||||
return ctx.accum_err;
|
||||
}
|
||||
|
||||
static int osd101t2587_panel_unprepare(struct drm_panel *panel)
|
||||
@@ -58,13 +58,11 @@ static int osd101t2587_panel_prepare(struct drm_panel *panel)
|
||||
static int osd101t2587_panel_enable(struct drm_panel *panel)
|
||||
{
|
||||
struct osd101t2587_panel *osd101t2587 = ti_osd_panel(panel);
|
||||
int ret;
|
||||
struct mipi_dsi_multi_context ctx = { .dsi = osd101t2587->dsi };
|
||||
|
||||
ret = mipi_dsi_turn_on_peripheral(osd101t2587->dsi);
|
||||
if (ret)
|
||||
return ret;
|
||||
mipi_dsi_turn_on_peripheral_multi(&ctx);
|
||||
|
||||
return ret;
|
||||
return ctx.accum_err;
|
||||
}
|
||||
|
||||
static const struct drm_display_mode default_mode_osd101t2587 = {
|
||||
|
||||
Reference in New Issue
Block a user