[PATCH v3 0/6] iio: use dev_err_probe in probe path for ADI drivers

Antoniu Miclaus posted 6 patches 1 month, 1 week ago
There is a newer version of this series
drivers/iio/dac/ad7293.c         | 32 +++++------
drivers/iio/filter/admv8818.c    | 61 ++++++++++-----------
drivers/iio/frequency/adf4377.c  | 57 +++++++++----------
drivers/iio/frequency/admv1013.c | 51 ++++++++---------
drivers/iio/frequency/admv1014.c | 94 +++++++++++++++-----------------
drivers/iio/frequency/adrf6780.c | 60 ++++++++++----------
6 files changed, 168 insertions(+), 187 deletions(-)
[PATCH v3 0/6] iio: use dev_err_probe in probe path for ADI drivers
Posted by Antoniu Miclaus 1 month, 1 week ago
Use dev_err_probe() consistently in the probe path of several ADI IIO
drivers. This simplifies error handling and ensures proper logging of
deferred probes.

Each driver is updated by introducing a local struct device variable to
simplify repeated &spi->dev / &client->dev references, and converting
error paths to use dev_err_probe().

Drivers updated:
 - adrf6780
 - admv1014
 - admv1013
 - adf4377
 - ad7293
 - admv8818

Changes in v3:
 - Squash the struct device variable introduction and dev_err_probe()
   conversion into a single patch per driver.

Antoniu Miclaus (6):
  iio: frequency: adrf6780: add dev variable and use dev_err_probe
  iio: frequency: admv1014: add dev variable and use dev_err_probe
  iio: frequency: admv1013: add dev variable and use dev_err_probe
  iio: frequency: adf4377: add dev variable and use dev_err_probe
  iio: dac: ad7293: add dev variable and use dev_err_probe
  iio: filter: admv8818: add dev variable and use dev_err_probe

 drivers/iio/dac/ad7293.c         | 32 +++++------
 drivers/iio/filter/admv8818.c    | 61 ++++++++++-----------
 drivers/iio/frequency/adf4377.c  | 57 +++++++++----------
 drivers/iio/frequency/admv1013.c | 51 ++++++++---------
 drivers/iio/frequency/admv1014.c | 94 +++++++++++++++-----------------
 drivers/iio/frequency/adrf6780.c | 60 ++++++++++----------
 6 files changed, 168 insertions(+), 187 deletions(-)

-- 
2.43.0
Re: [PATCH v3 0/6] iio: use dev_err_probe in probe path for ADI drivers
Posted by Andy Shevchenko 1 month, 1 week ago
On Wed, Feb 25, 2026 at 05:05:46PM +0200, Antoniu Miclaus wrote:
> Use dev_err_probe() consistently in the probe path of several ADI IIO
> drivers. This simplifies error handling and ensures proper logging of
> deferred probes.
> 
> Each driver is updated by introducing a local struct device variable to
> simplify repeated &spi->dev / &client->dev references, and converting
> error paths to use dev_err_probe().
> 
> Drivers updated:
>  - adrf6780
>  - admv1014
>  - admv1013
>  - adf4377
>  - ad7293
>  - admv8818
> 
> Changes in v3:
>  - Squash the struct device variable introduction and dev_err_probe()
>    conversion into a single patch per driver.

Why? Maybe my comment was unclear previous time.

The idea is to convert to short dev the only lines that are not being touched
by the second (dev_err_probe() conversion) patch.

-- 
With Best Regards,
Andy Shevchenko