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

Antoniu Miclaus posted 4 patches 3 weeks, 3 days ago
drivers/iio/frequency/ad9523.c   | 22 ++++++++++----------
drivers/iio/frequency/admv4420.c | 35 +++++++++++++++-----------------
2 files changed, 27 insertions(+), 30 deletions(-)
[PATCH v2 0/4] iio: frequency: use dev_err_probe for admv4420 and ad9523
Posted by Antoniu Miclaus 3 weeks, 3 days 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.

Changes in v2:
  - Fix vco_freq_hz format specifier from %lld to %llu (patch 2)
  - Split pdata declaration and assignment in ad9523_probe() (patch 3)
  - Leave dev_err(&spi->dev, ...) untouched in patch 3, let patch 4
    handle the full dev_err_probe(dev, ...) conversion

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   | 22 ++++++++++----------
 drivers/iio/frequency/admv4420.c | 35 +++++++++++++++-----------------
 2 files changed, 27 insertions(+), 30 deletions(-)

-- 
2.43.0
Re: [PATCH v2 0/4] iio: frequency: use dev_err_probe for admv4420 and ad9523
Posted by Jonathan Cameron 2 weeks, 2 days ago
On Fri, 13 Mar 2026 13:57:40 +0200
Antoniu Miclaus <antoniu.miclaus@analog.com> wrote:

> 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.
Series applied to the testing branch of iio.git.

Usual stuff about will wait for bots to poke it then push out as togreg
for linux-next to pick it up.

thanks,

Jonathan
> 
> Changes in v2:
>   - Fix vco_freq_hz format specifier from %lld to %llu (patch 2)
>   - Split pdata declaration and assignment in ad9523_probe() (patch 3)
>   - Leave dev_err(&spi->dev, ...) untouched in patch 3, let patch 4
>     handle the full dev_err_probe(dev, ...) conversion
> 
> 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   | 22 ++++++++++----------
>  drivers/iio/frequency/admv4420.c | 35 +++++++++++++++-----------------
>  2 files changed, 27 insertions(+), 30 deletions(-)
>