drm/panel: sw43408: Improve wording when reset-gpios aren't available

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
This commit is contained in:
David Heidelberg 2025-12-14 15:51:23 +01:00 committed by Neil Armstrong
parent ed2b818a24
commit 29e208a08a

View 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);