projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98ba045
)
drm/panel: panel-ilitek9881c: Use cansleep methods
author
Mark Williams
<mwp@mwp.id.au>
Thu, 8 Dec 2022 01:20:40 +0000
(18:20 -0700)
committer
Dom Cobley
<popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:25 +0000
(11:33 +0000)
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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
index
b994f96
..
0d801ac
100644
(file)
--- 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_panel *panel)
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_panel *panel)
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;
}