Skip to content

Commit 251e3c1

Browse files
lumagsuperna9999
authored andcommitted
drm/panel: visionox-rm69299: stop calling regulator_set_load manually
Use .init_load_uA part of the bulk regulator API instead of calling register_set_load() manually. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20240404-drop-panel-unregister-v1-6-9f56953c5fb9@linaro.org Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240404-drop-panel-unregister-v1-6-9f56953c5fb9@linaro.org
1 parent a8ee5f5 commit 251e3c1

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

drivers/gpu/drm/panel/panel-visionox-rm69299.c

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ static int visionox_rm69299_probe(struct mipi_dsi_device *dsi)
197197
ctx->dsi = dsi;
198198

199199
ctx->supplies[0].supply = "vdda";
200+
ctx->supplies[0].init_load_uA = 32000;
200201
ctx->supplies[1].supply = "vdd3p3";
202+
ctx->supplies[1].init_load_uA = 13200;
201203

202204
ret = devm_regulator_bulk_get(ctx->panel.dev, ARRAY_SIZE(ctx->supplies),
203205
ctx->supplies);
@@ -227,22 +229,8 @@ static int visionox_rm69299_probe(struct mipi_dsi_device *dsi)
227229
goto err_dsi_attach;
228230
}
229231

230-
ret = regulator_set_load(ctx->supplies[0].consumer, 32000);
231-
if (ret) {
232-
dev_err(dev, "regulator set load failed for vdda supply ret = %d\n", ret);
233-
goto err_set_load;
234-
}
235-
236-
ret = regulator_set_load(ctx->supplies[1].consumer, 13200);
237-
if (ret) {
238-
dev_err(dev, "regulator set load failed for vdd3p3 supply ret = %d\n", ret);
239-
goto err_set_load;
240-
}
241-
242232
return 0;
243233

244-
err_set_load:
245-
mipi_dsi_detach(dsi);
246234
err_dsi_attach:
247235
drm_panel_remove(&ctx->panel);
248236
return ret;

0 commit comments

Comments
 (0)