]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/panel: feiyang-fy07024di26a30d: make reset gpio optional
authorPeter Geis <pgwipeout@gmail.com>
Wed, 11 May 2022 11:35:15 +0000 (07:35 -0400)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 15 May 2022 19:30:01 +0000 (21:30 +0200)
Some implementations do not use the reset signal, instead tying it to dvdd.
Make the reset gpio optional to permit this.

Signed-off-by: Peter Geis <pgwipeout@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220511113517.4172962-3-pgwipeout@gmail.com
drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c

index a9cd7135cb5140ed678529a3697e111a659d1791..ee61d60eceae179e488c140085b432f5b3555b24 100644 (file)
@@ -209,7 +209,7 @@ static int feiyang_dsi_probe(struct mipi_dsi_device *dsi)
                return dev_err_probe(&dsi->dev, PTR_ERR(ctx->avdd),
                                     "Couldn't get avdd regulator\n");
 
-       ctx->reset = devm_gpiod_get(&dsi->dev, "reset", GPIOD_OUT_LOW);
+       ctx->reset = devm_gpiod_get_optional(&dsi->dev, "reset", GPIOD_OUT_LOW);
        if (IS_ERR(ctx->reset))
                return dev_err_probe(&dsi->dev, PTR_ERR(ctx->reset),
                                     "Couldn't get our reset GPIO\n");