Re: [PATCH v2] pinctrl: Simplify with dev_err_probe()

From: Linus Walleij
Date: Mon Sep 02 2024 - 04:30:02 EST


On Thu, Aug 29, 2024 at 6:48 AM Yan Zhen <yanzhen@xxxxxxxx> wrote:

> Switch to use dev_err_probe() to simplify the error path and
> unify a message template.
>
> Using this helper is totally fine even if err is known to never
> be -EPROBE_DEFER.
>
> The benefit compared to a normal dev_err() is the standardized format
> of the error code, it being emitted symbolically and the fact that
> the error code is returned which allows more compact error paths.
>
>
> Signed-off-by: Yan Zhen <yanzhen@xxxxxxxx>

Fixed up the subject and applied the patch.

Yours,
Linus Walleij