Replace calls to deprecated mipi_dsi_dcs_nop() with
mipi_dsi_dcs_nop_multi(). No intended functional changes.

Signed-off-by: Caio Ishikawa <[email protected]>
---
 drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c 
b/drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c
index f33d4f855929..01b4458e55ad 100644
--- a/drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c
+++ b/drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c
@@ -221,6 +221,7 @@ static int boe_th101mb31ig002_prepare(struct drm_panel 
*panel)
                                                      struct boe_th101mb31ig002,
                                                      panel);
        struct device *dev = &ctx->dsi->dev;
+       struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi };
        int ret;
 
        ret = regulator_enable(ctx->power);
@@ -233,9 +234,9 @@ static int boe_th101mb31ig002_prepare(struct drm_panel 
*panel)
                msleep(ctx->desc->vcioo_to_lp11_delay_ms);
 
        if (ctx->desc->lp11_before_reset) {
-               ret = mipi_dsi_dcs_nop(ctx->dsi);
-               if (ret)
-                       return ret;
+               mipi_dsi_dcs_nop_multi(&dsi_ctx);
+               if (dsi_ctx.accum_err)
+                       return dsi_ctx.accum_err;
        }
 
        if (ctx->desc->lp11_to_reset_delay_ms)
-- 
2.52.0


Reply via email to