diff options
author | Sebastian Reichel <[email protected]> | 2023-07-14 03:37:42 +0200 |
---|---|---|
committer | Neil Armstrong <[email protected]> | 2023-08-01 10:29:54 +0200 |
commit | b6b65e45e09a2e940e48722fa0bfdf16e6f4edf8 (patch) | |
tree | 1c1b3a8c816208b704fc2b5ca56bae8b93a9eba6 | |
parent | c2974f43b1237e0c985760156bc3ca4dccbb5243 (diff) |
drm/panel: sitronix-st7789v: make reset GPIO optional
The reset pin might not be software controllable from the SoC,
so make it optional.
Reviewed-by: Michael Riesch <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r-- | drivers/gpu/drm/panel/panel-sitronix-st7789v.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c index f7566551b5e2..1d43b8cc1647 100644 --- a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c +++ b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c @@ -369,7 +369,7 @@ static int st7789v_probe(struct spi_device *spi) if (IS_ERR(ctx->power)) return PTR_ERR(ctx->power); - ctx->reset = devm_gpiod_get(&spi->dev, "reset", GPIOD_OUT_LOW); + ctx->reset = devm_gpiod_get_optional(&spi->dev, "reset", GPIOD_OUT_LOW); if (IS_ERR(ctx->reset)) { dev_err(&spi->dev, "Couldn't get our reset line\n"); return PTR_ERR(ctx->reset); |