[PATCH v3 0/6] iio: use dev_err_probe in probe path for ADI drivers
From: Antoniu Miclaus
Date: Wed Feb 25 2026 - 10:10:34 EST
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