Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

David Heidelberg and committed by
Neil Armstrong
29e208a0 ed2b818a

+2 -2
+2 -2
drivers/gpu/drm/panel/panel-lg-sw43408.c
··· 244 244 245 245 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); 246 246 if (IS_ERR(ctx->reset_gpio)) { 247 - ret = PTR_ERR(ctx->reset_gpio); 248 - return dev_err_probe(dev, ret, "cannot get reset gpio\n"); 247 + return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), 248 + "Failed to get reset-gpios\n"); 249 249 } 250 250 251 251 ret = sw43408_backlight_init(ctx);