mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 04:23:35 +02:00
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:
parent
ed2b818a24
commit
29e208a08a
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user