Commit 302aeb94 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Neil Armstrong

drm/panel: novatek-nt36672e: stop setting register load before disable

It is pointless to set register load before disabling the register. This
vote is going to be dropped as soon as the register is disabled. Drop
these register_set_load calls.
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20240404-drop-panel-unregister-v1-3-9f56953c5fb9@linaro.orgSigned-off-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240404-drop-panel-unregister-v1-3-9f56953c5fb9@linaro.org
parent 6abe93b6
...@@ -25,12 +25,6 @@ static const unsigned long regulator_enable_loads[] = { ...@@ -25,12 +25,6 @@ static const unsigned long regulator_enable_loads[] = {
100000, 100000,
}; };
static const unsigned long regulator_disable_loads[] = {
80,
100,
100,
};
struct panel_desc { struct panel_desc {
const struct drm_display_mode *display_mode; const struct drm_display_mode *display_mode;
u32 width_mm; u32 width_mm;
...@@ -385,20 +379,9 @@ static int nt36672e_power_off(struct nt36672e_panel *ctx) ...@@ -385,20 +379,9 @@ static int nt36672e_power_off(struct nt36672e_panel *ctx)
{ {
struct mipi_dsi_device *dsi = ctx->dsi; struct mipi_dsi_device *dsi = ctx->dsi;
int ret = 0; int ret = 0;
int i;
gpiod_set_value(ctx->reset_gpio, 0); gpiod_set_value(ctx->reset_gpio, 0);
for (i = 0; i < ARRAY_SIZE(ctx->supplies); i++) {
ret = regulator_set_load(ctx->supplies[i].consumer,
regulator_disable_loads[i]);
if (ret) {
dev_err(&dsi->dev, "regulator set load failed for supply %s: %d\n",
ctx->supplies[i].supply, ret);
return ret;
}
}
ret = regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies); ret = regulator_bulk_disable(ARRAY_SIZE(ctx->supplies), ctx->supplies);
if (ret) if (ret)
dev_err(&dsi->dev, "regulator bulk disable failed: %d\n", ret); dev_err(&dsi->dev, "regulator bulk disable failed: %d\n", ret);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment