mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
drm: panel: ili9881: Correct symmetry on enable/disable return codes
ili9881c_enable is always returning 0. ili9881c_disable was returning the error code from mipi_dsi_dcs_set_display_off. If non-zero, the drm_panel framework will leave the panel marked as enabled, and not run the enable hook next time around. That isn't helpful, particularly as we're expecting unprepare to disable resets and regulators. Change ili9881c_disable to match enable in always returning 0. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
This commit is contained in:
committed by
Dom Cobley
parent
6cbcff36bf
commit
32d600c99a
@@ -2138,7 +2138,9 @@ static int ili9881c_disable(struct drm_panel *panel)
|
||||
{
|
||||
struct ili9881c *ctx = panel_to_ili9881c(panel);
|
||||
|
||||
return mipi_dsi_dcs_set_display_off(ctx->dsi);
|
||||
mipi_dsi_dcs_set_display_off(ctx->dsi);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int ili9881c_unprepare(struct drm_panel *panel)
|
||||
|
||||
Reference in New Issue
Block a user