mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 01:59:02 +00:00
38 lines
1.1 KiB
Diff
38 lines
1.1 KiB
Diff
|
From 79f7bcfff7a02fd32019cac8df7908dd61e1c7f7 Mon Sep 17 00:00:00 2001
|
||
|
From: Mark Williams <mwp@mwp.id.au>
|
||
|
Date: Wed, 7 Dec 2022 18:20:40 -0700
|
||
|
Subject: [PATCH 0398/1085] drm/panel: panel-ilitek9881c: Use cansleep methods
|
||
|
|
||
|
Use cansleep version of gpiod_set_value so external IO drivers (like
|
||
|
via I2C) can be used.
|
||
|
|
||
|
Signed-off-by: Mark Williams <mwp@mwp.id.au>
|
||
|
---
|
||
|
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 6 +++---
|
||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||
|
|
||
|
--- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
|
||
|
+++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
|
||
|
@@ -1107,10 +1107,10 @@ static int ili9881c_prepare(struct drm_p
|
||
|
msleep(5);
|
||
|
|
||
|
/* And reset it */
|
||
|
- gpiod_set_value(ctx->reset, 1);
|
||
|
+ gpiod_set_value_cansleep(ctx->reset, 1);
|
||
|
msleep(20);
|
||
|
|
||
|
- gpiod_set_value(ctx->reset, 0);
|
||
|
+ gpiod_set_value_cansleep(ctx->reset, 0);
|
||
|
msleep(20);
|
||
|
|
||
|
for (i = 0; i < ctx->desc->init_length; i++) {
|
||
|
@@ -1165,7 +1165,7 @@ static int ili9881c_unprepare(struct drm
|
||
|
|
||
|
mipi_dsi_dcs_enter_sleep_mode(ctx->dsi);
|
||
|
regulator_disable(ctx->power);
|
||
|
- gpiod_set_value(ctx->reset, 1);
|
||
|
+ gpiod_set_value_cansleep(ctx->reset, 1);
|
||
|
|
||
|
return 0;
|
||
|
}
|