Re: [PATCH v2 04/12] iio: frequency: admv1014: use dev_err_probe in probe path
From: Andy Shevchenko
Date: Mon Feb 23 2026 - 09:02:36 EST
On Mon, Feb 23, 2026 at 03:13:55PM +0200, Antoniu Miclaus wrote:
> Replace dev_err() + return with dev_err_probe() in the probe path
> to simplify error handling and to ensure the error code is logged.
>
> Drop 'SPI' from error messages since the bus type is evident.
Okay, it seems that conversion to use struct dev should not touch messages
that are going to be converted to dev_err_probe().
In that case it won't give an unneeded churn. Now all those lines become
touched twice in the sequential changes.
--
With Best Regards,
Andy Shevchenko