mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-12 07:13:10 -04:00
drm/panel: ilitek-ili9805: make cleanup funcs void
Make cleanup functions return void since no one is checking their return values Signed-off-by: Michail Tatas <michail.tatas@gmail.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Douglas Anderson <dianders@chromium.org> Link: https://patch.msgid.link/20260723203601.806697-4-michail.tatas@gmail.com
This commit is contained in:
committed by
Douglas Anderson
parent
438caed529
commit
eb7979f601
@@ -149,13 +149,11 @@ static int ili9805_power_on(struct ili9805 *ctx)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int ili9805_power_off(struct ili9805 *ctx)
|
||||
static void ili9805_power_off(struct ili9805 *ctx)
|
||||
{
|
||||
gpiod_set_value(ctx->reset_gpio, 0);
|
||||
regulator_disable(ctx->dvdd);
|
||||
regulator_disable(ctx->avdd);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int ili9805_activate(struct ili9805 *ctx)
|
||||
@@ -189,15 +187,13 @@ static int ili9805_prepare(struct drm_panel *panel)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int ili9805_deactivate(struct ili9805 *ctx)
|
||||
static void ili9805_deactivate(struct ili9805 *ctx)
|
||||
{
|
||||
struct mipi_dsi_multi_context dsi_ctx = { .dsi = ctx->dsi };
|
||||
|
||||
mipi_dsi_dcs_set_display_off_multi(&dsi_ctx);
|
||||
mipi_dsi_usleep_range(&dsi_ctx, 5000, 10000);
|
||||
mipi_dsi_dcs_enter_sleep_mode_multi(&dsi_ctx);
|
||||
|
||||
return dsi_ctx.accum_err;
|
||||
}
|
||||
|
||||
static int ili9805_unprepare(struct drm_panel *panel)
|
||||
|
||||
Reference in New Issue
Block a user