]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/panel: ilitek-ili9882t: fix GPIO name in error message
authorJohn Keeping <jkeeping@inmusicbrands.com>
Mon, 17 Feb 2025 12:04:28 +0000 (12:04 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 20 Feb 2025 14:17:11 +0000 (15:17 +0100)
This driver uses the enable-gpios property and it is confusing that the
error message refers to reset-gpios.  Use the correct name when the
enable GPIO is not found.

Fixes: e2450d32e5fb5 ("drm/panel: ili9882t: Break out as separate driver")
Signed-off-by: John Keeping <jkeeping@inmusicbrands.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20250217120428.3779197-1-jkeeping@inmusicbrands.com
drivers/gpu/drm/panel/panel-ilitek-ili9882t.c

index 266a087fe14c13443302ab494f313dccab08e20a..3c24a63b6be8c710a1b7f3524b537d3cb6fc63d3 100644 (file)
@@ -607,7 +607,7 @@ static int ili9882t_add(struct ili9882t *ili)
 
        ili->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW);
        if (IS_ERR(ili->enable_gpio)) {
-               dev_err(dev, "cannot get reset-gpios %ld\n",
+               dev_err(dev, "cannot get enable-gpios %ld\n",
                        PTR_ERR(ili->enable_gpio));
                return PTR_ERR(ili->enable_gpio);
        }