]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/panel: sw43408: Improve wording when reset-gpios aren't available
authorDavid Heidelberg <david@ixit.cz>
Sun, 14 Dec 2025 14:51:23 +0000 (15:51 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Tue, 16 Dec 2025 10:21:34 +0000 (11:21 +0100)
Choose better wording.

Cosmetic: also inline PTR_ERR.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20251214-pixel-3-v7-7-b1c0cf6f224d@ixit.cz
drivers/gpu/drm/panel/panel-lg-sw43408.c

index a5708c7d04192b8f345e6706e5013a038419c6d0..293826c5006b99208fa6ed3d46ed94f384e6eabb 100644 (file)
@@ -244,8 +244,8 @@ static int sw43408_add(struct sw43408_panel *ctx)
 
        ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW);
        if (IS_ERR(ctx->reset_gpio)) {
-               ret = PTR_ERR(ctx->reset_gpio);
-               return dev_err_probe(dev, ret, "cannot get reset gpio\n");
+               return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio),
+                                    "Failed to get reset-gpios\n");
        }
 
        ret = sw43408_backlight_init(ctx);