[PATCH 0/4] iio: frequency: use dev_err_probe for admv4420 and ad9523

Antoniu Miclaus posted 4 patches 1 month ago
There is a newer version of this series
drivers/iio/frequency/ad9523.c   | 21 ++++++++++----------
drivers/iio/frequency/admv4420.c | 34 ++++++++++++++------------------
2 files changed, 25 insertions(+), 30 deletions(-)
[PATCH 0/4] iio: frequency: use dev_err_probe for admv4420 and ad9523
Posted by Antoniu Miclaus 1 month ago
Use dev_err_probe() instead of dev_err() in the probe paths of the
admv4420 and ad9523 frequency drivers.

Each driver update is split into two patches:
 - First patch introduces a local struct device variable in the probe
   function and replaces &spi->dev references in non-error paths.
 - Second patch converts dev_err() calls to dev_err_probe() in the
   probe path.

No lines are edited twice across patch pairs.

Antoniu Miclaus (4):
  iio: frequency: admv4420: add dev variable
  iio: frequency: admv4420: use dev_err_probe
  iio: frequency: ad9523: add dev variable
  iio: frequency: ad9523: use dev_err_probe

 drivers/iio/frequency/ad9523.c   | 21 ++++++++++----------
 drivers/iio/frequency/admv4420.c | 34 ++++++++++++++------------------
 2 files changed, 25 insertions(+), 30 deletions(-)

-- 
2.43.0
Re: [PATCH 0/4] iio: frequency: use dev_err_probe for admv4420 and ad9523
Posted by Andy Shevchenko 1 month ago
On Fri, Mar 06, 2026 at 12:24:44PM +0200, Antoniu Miclaus wrote:
> Use dev_err_probe() instead of dev_err() in the probe paths of the
> admv4420 and ad9523 frequency drivers.

In the subject you need to use () as well: dev_err_probe().

-- 
With Best Regards,
Andy Shevchenko