public inbox for linux-iio@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/13] iio: adc: use dev_err_probe in probe paths
@ 2026-03-30 11:18 Antoniu Miclaus
  2026-03-30 11:18 ` [PATCH 01/13] iio: adc: ad7949: use dev_err_probe Antoniu Miclaus
                   ` (13 more replies)
  0 siblings, 14 replies; 17+ messages in thread
From: Antoniu Miclaus @ 2026-03-30 11:18 UTC (permalink / raw)
  To: Jorge Marques, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, David Lechner, Nuno Sá, Marcelo Schmitt,
	Renato Lui Geh, linux-iio, linux-kernel
  Cc: Antoniu Miclaus

This series converts dev_err() calls to dev_err_probe() in the probe
paths of various IIO ADC drivers. This ensures proper handling of
deferred probing and simplifies error handling.

Where needed, a local struct device pointer is introduced first to
reduce repeated &spi->dev dereferences throughout the probe function.

Drivers addressed:
  - ad7949, ad7780, ad7793, ad7292, ad7791, ad7280a, ad7768-1,
    ad9467, ad4062

Antoniu Miclaus (13):
  iio: adc: ad7949: use dev_err_probe
  iio: adc: ad7780: add dev variable
  iio: adc: ad7780: use dev_err_probe
  iio: adc: ad7793: add dev variable
  iio: adc: ad7793: use dev_err_probe
  iio: adc: ad7292: add dev variable
  iio: adc: ad7292: use dev_err_probe
  iio: adc: ad7791: add dev variable
  iio: adc: ad7791: use dev_err_probe
  iio: adc: ad7280a: use dev_err_probe
  iio: adc: ad7768-1: use dev_err_probe
  iio: adc: ad9467: use dev_err_probe
  iio: adc: ad4062: use dev_err_probe

 drivers/iio/adc/ad4062.c   |  7 +++---
 drivers/iio/adc/ad7280a.c  |  4 ++--
 drivers/iio/adc/ad7292.c   | 16 ++++++-------
 drivers/iio/adc/ad7768-1.c |  6 ++---
 drivers/iio/adc/ad7780.c   | 46 ++++++++++++++++----------------------
 drivers/iio/adc/ad7791.c   | 19 ++++++++--------
 drivers/iio/adc/ad7793.c   | 30 +++++++++++--------------
 drivers/iio/adc/ad7949.c   | 25 ++++++++-------------
 drivers/iio/adc/ad9467.c   |  9 ++++----
 9 files changed, 69 insertions(+), 93 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 17+ messages in thread

* [PATCH 01/13] iio: adc: ad7949: use dev_err_probe
  2026-03-30 11:18 [PATCH 00/13] iio: adc: use dev_err_probe in probe paths Antoniu Miclaus
@ 2026-03-30 11:18 ` Antoniu Miclaus
  2026-03-30 11:18 ` [PATCH 02/13] iio: adc: ad7780: add dev variable Antoniu Miclaus
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Antoniu Miclaus @ 2026-03-30 11:18 UTC (permalink / raw)
  To: Jorge Marques, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, David Lechner, Nuno Sá, Marcelo Schmitt,
	Renato Lui Geh, linux-iio, linux-kernel
  Cc: Antoniu Miclaus

Use dev_err_probe() instead of dev_err() in the probe path to ensure
proper handling of deferred probing and to simplify error handling.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
 drivers/iio/adc/ad7949.c | 25 +++++++++----------------
 1 file changed, 9 insertions(+), 16 deletions(-)

diff --git a/drivers/iio/adc/ad7949.c b/drivers/iio/adc/ad7949.c
index b35d299a3977..ebc629bcfd4d 100644
--- a/drivers/iio/adc/ad7949.c
+++ b/drivers/iio/adc/ad7949.c
@@ -341,8 +341,8 @@ static int ad7949_spi_probe(struct spi_device *spi)
 	} else if (spi_is_bpw_supported(spi, 8)) {
 		spi->bits_per_word = 8;
 	} else {
-		dev_err(dev, "unable to find common BPW with spi controller\n");
-		return -EINVAL;
+		return dev_err_probe(dev, -EINVAL,
+				     "unable to find common BPW with spi controller\n");
 	}
 
 	/* Setup internal voltage reference */
@@ -357,8 +357,8 @@ static int ad7949_spi_probe(struct spi_device *spi)
 		ad7949_adc->refsel = AD7949_CFG_VAL_REF_INT_4096;
 		break;
 	default:
-		dev_err(dev, "unsupported internal voltage reference\n");
-		return -EINVAL;
+		return dev_err_probe(dev, -EINVAL,
+				     "unsupported internal voltage reference\n");
 	}
 
 	/* Setup external voltage reference, buffered? */
@@ -382,10 +382,9 @@ static int ad7949_spi_probe(struct spi_device *spi)
 
 	if (ad7949_adc->refsel & AD7949_CFG_VAL_REF_EXTERNAL) {
 		ret = regulator_enable(ad7949_adc->vref);
-		if (ret < 0) {
-			dev_err(dev, "fail to enable regulator\n");
-			return ret;
-		}
+		if (ret < 0)
+			return dev_err_probe(dev, ret,
+					     "fail to enable regulator\n");
 
 		ret = devm_add_action_or_reset(dev, ad7949_disable_reg,
 					       ad7949_adc->vref);
@@ -396,16 +395,10 @@ static int ad7949_spi_probe(struct spi_device *spi)
 	mutex_init(&ad7949_adc->lock);
 
 	ret = ad7949_spi_init(ad7949_adc);
-	if (ret) {
-		dev_err(dev, "fail to init this device: %d\n", ret);
-		return ret;
-	}
-
-	ret = devm_iio_device_register(dev, indio_dev);
 	if (ret)
-		dev_err(dev, "fail to register iio device: %d\n", ret);
+		return dev_err_probe(dev, ret, "fail to init this device\n");
 
-	return ret;
+	return devm_iio_device_register(dev, indio_dev);
 }
 
 static const struct of_device_id ad7949_spi_of_id[] = {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 02/13] iio: adc: ad7780: add dev variable
  2026-03-30 11:18 [PATCH 00/13] iio: adc: use dev_err_probe in probe paths Antoniu Miclaus
  2026-03-30 11:18 ` [PATCH 01/13] iio: adc: ad7949: use dev_err_probe Antoniu Miclaus
@ 2026-03-30 11:18 ` Antoniu Miclaus
  2026-03-30 11:18 ` [PATCH 03/13] iio: adc: ad7780: use dev_err_probe Antoniu Miclaus
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Antoniu Miclaus @ 2026-03-30 11:18 UTC (permalink / raw)
  To: Jorge Marques, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, David Lechner, Nuno Sá, Marcelo Schmitt,
	Renato Lui Geh, linux-iio, linux-kernel
  Cc: Antoniu Miclaus

Add a local struct device pointer to simplify repeated &spi->dev
dereferences throughout the probe function.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
 drivers/iio/adc/ad7780.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/drivers/iio/adc/ad7780.c b/drivers/iio/adc/ad7780.c
index 24d2dcad8f4d..4c1990e27213 100644
--- a/drivers/iio/adc/ad7780.c
+++ b/drivers/iio/adc/ad7780.c
@@ -307,11 +307,12 @@ static void ad7780_reg_disable(void *reg)
 
 static int ad7780_probe(struct spi_device *spi)
 {
+	struct device *dev = &spi->dev;
 	struct ad7780_state *st;
 	struct iio_dev *indio_dev;
 	int ret;
 
-	indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
+	indio_dev = devm_iio_device_alloc(dev, sizeof(*st));
 	if (!indio_dev)
 		return -ENOMEM;
 
@@ -329,11 +330,11 @@ static int ad7780_probe(struct spi_device *spi)
 	indio_dev->num_channels = 1;
 	indio_dev->info = &ad7780_info;
 
-	ret = ad7780_init_gpios(&spi->dev, st);
+	ret = ad7780_init_gpios(dev, st);
 	if (ret)
 		return ret;
 
-	st->reg = devm_regulator_get(&spi->dev, "avdd");
+	st->reg = devm_regulator_get(dev, "avdd");
 	if (IS_ERR(st->reg))
 		return PTR_ERR(st->reg);
 
@@ -343,15 +344,15 @@ static int ad7780_probe(struct spi_device *spi)
 		return ret;
 	}
 
-	ret = devm_add_action_or_reset(&spi->dev, ad7780_reg_disable, st->reg);
+	ret = devm_add_action_or_reset(dev, ad7780_reg_disable, st->reg);
 	if (ret)
 		return ret;
 
-	ret = devm_ad_sd_setup_buffer_and_trigger(&spi->dev, indio_dev);
+	ret = devm_ad_sd_setup_buffer_and_trigger(dev, indio_dev);
 	if (ret)
 		return ret;
 
-	return devm_iio_device_register(&spi->dev, indio_dev);
+	return devm_iio_device_register(dev, indio_dev);
 }
 
 static const struct spi_device_id ad7780_id[] = {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 03/13] iio: adc: ad7780: use dev_err_probe
  2026-03-30 11:18 [PATCH 00/13] iio: adc: use dev_err_probe in probe paths Antoniu Miclaus
  2026-03-30 11:18 ` [PATCH 01/13] iio: adc: ad7949: use dev_err_probe Antoniu Miclaus
  2026-03-30 11:18 ` [PATCH 02/13] iio: adc: ad7780: add dev variable Antoniu Miclaus
@ 2026-03-30 11:18 ` Antoniu Miclaus
  2026-03-30 11:18 ` [PATCH 04/13] iio: adc: ad7793: add dev variable Antoniu Miclaus
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Antoniu Miclaus @ 2026-03-30 11:18 UTC (permalink / raw)
  To: Jorge Marques, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, David Lechner, Nuno Sá, Marcelo Schmitt,
	Renato Lui Geh, linux-iio, linux-kernel
  Cc: Antoniu Miclaus

Use dev_err_probe() instead of dev_err() in the probe path to ensure
proper handling of deferred probing and to simplify error handling.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
 drivers/iio/adc/ad7780.c | 33 ++++++++++++---------------------
 1 file changed, 12 insertions(+), 21 deletions(-)

diff --git a/drivers/iio/adc/ad7780.c b/drivers/iio/adc/ad7780.c
index 4c1990e27213..26382b1f8c9e 100644
--- a/drivers/iio/adc/ad7780.c
+++ b/drivers/iio/adc/ad7780.c
@@ -264,16 +264,12 @@ static const struct iio_info ad7780_info = {
 
 static int ad7780_init_gpios(struct device *dev, struct ad7780_state *st)
 {
-	int ret;
-
 	st->powerdown_gpio = devm_gpiod_get_optional(dev,
 						     "powerdown",
 						     GPIOD_OUT_LOW);
-	if (IS_ERR(st->powerdown_gpio)) {
-		ret = PTR_ERR(st->powerdown_gpio);
-		dev_err(dev, "Failed to request powerdown GPIO: %d\n", ret);
-		return ret;
-	}
+	if (IS_ERR(st->powerdown_gpio))
+		return dev_err_probe(dev, PTR_ERR(st->powerdown_gpio),
+				     "Failed to request powerdown GPIO\n");
 
 	if (!st->chip_info->is_ad778x)
 		return 0;
@@ -282,20 +278,16 @@ static int ad7780_init_gpios(struct device *dev, struct ad7780_state *st)
 	st->gain_gpio = devm_gpiod_get_optional(dev,
 						"adi,gain",
 						GPIOD_OUT_HIGH);
-	if (IS_ERR(st->gain_gpio)) {
-		ret = PTR_ERR(st->gain_gpio);
-		dev_err(dev, "Failed to request gain GPIO: %d\n", ret);
-		return ret;
-	}
+	if (IS_ERR(st->gain_gpio))
+		return dev_err_probe(dev, PTR_ERR(st->gain_gpio),
+				     "Failed to request gain GPIO\n");
 
 	st->filter_gpio = devm_gpiod_get_optional(dev,
 						  "adi,filter",
 						  GPIOD_OUT_HIGH);
-	if (IS_ERR(st->filter_gpio)) {
-		ret = PTR_ERR(st->filter_gpio);
-		dev_err(dev, "Failed to request filter GPIO: %d\n", ret);
-		return ret;
-	}
+	if (IS_ERR(st->filter_gpio))
+		return dev_err_probe(dev, PTR_ERR(st->filter_gpio),
+				     "Failed to request filter GPIO\n");
 
 	return 0;
 }
@@ -339,10 +331,9 @@ static int ad7780_probe(struct spi_device *spi)
 		return PTR_ERR(st->reg);
 
 	ret = regulator_enable(st->reg);
-	if (ret) {
-		dev_err(&spi->dev, "Failed to enable specified AVdd supply\n");
-		return ret;
-	}
+	if (ret)
+		return dev_err_probe(dev, ret,
+				     "Failed to enable specified AVdd supply\n");
 
 	ret = devm_add_action_or_reset(dev, ad7780_reg_disable, st->reg);
 	if (ret)
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 04/13] iio: adc: ad7793: add dev variable
  2026-03-30 11:18 [PATCH 00/13] iio: adc: use dev_err_probe in probe paths Antoniu Miclaus
                   ` (2 preceding siblings ...)
  2026-03-30 11:18 ` [PATCH 03/13] iio: adc: ad7780: use dev_err_probe Antoniu Miclaus
@ 2026-03-30 11:18 ` Antoniu Miclaus
  2026-03-30 11:18 ` [PATCH 05/13] iio: adc: ad7793: use dev_err_probe Antoniu Miclaus
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Antoniu Miclaus @ 2026-03-30 11:18 UTC (permalink / raw)
  To: Jorge Marques, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, David Lechner, Nuno Sá, Marcelo Schmitt,
	Renato Lui Geh, linux-iio, linux-kernel
  Cc: Antoniu Miclaus

Add a local struct device pointer to simplify repeated &spi->dev
dereferences throughout the probe function.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
 drivers/iio/adc/ad7793.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/drivers/iio/adc/ad7793.c b/drivers/iio/adc/ad7793.c
index 8ff7b70d6632..21c667e37b31 100644
--- a/drivers/iio/adc/ad7793.c
+++ b/drivers/iio/adc/ad7793.c
@@ -774,7 +774,8 @@ static const struct ad7793_chip_info ad7793_chip_info_tbl[] = {
 
 static int ad7793_probe(struct spi_device *spi)
 {
-	const struct ad7793_platform_data *pdata = dev_get_platdata(&spi->dev);
+	struct device *dev = &spi->dev;
+	const struct ad7793_platform_data *pdata = dev_get_platdata(dev);
 	struct ad7793_state *st;
 	struct iio_dev *indio_dev;
 	int ret, vref_mv = 0;
@@ -789,7 +790,7 @@ static int ad7793_probe(struct spi_device *spi)
 		return -ENODEV;
 	}
 
-	indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
+	indio_dev = devm_iio_device_alloc(dev, sizeof(*st));
 	if (indio_dev == NULL)
 		return -ENOMEM;
 
@@ -798,7 +799,7 @@ static int ad7793_probe(struct spi_device *spi)
 	ad_sd_init(&st->sd, indio_dev, spi, &ad7793_sigma_delta_info);
 
 	if (pdata->refsel != AD7793_REFSEL_INTERNAL) {
-		ret = devm_regulator_get_enable_read_voltage(&spi->dev, "refin");
+		ret = devm_regulator_get_enable_read_voltage(dev, "refin");
 		if (ret < 0)
 			return ret;
 
@@ -816,7 +817,7 @@ static int ad7793_probe(struct spi_device *spi)
 	indio_dev->num_channels = st->chip_info->num_channels;
 	indio_dev->info = st->chip_info->iio_info;
 
-	ret = devm_ad_sd_setup_buffer_and_trigger(&spi->dev, indio_dev);
+	ret = devm_ad_sd_setup_buffer_and_trigger(dev, indio_dev);
 	if (ret)
 		return ret;
 
@@ -824,7 +825,7 @@ static int ad7793_probe(struct spi_device *spi)
 	if (ret)
 		return ret;
 
-	return devm_iio_device_register(&spi->dev, indio_dev);
+	return devm_iio_device_register(dev, indio_dev);
 }
 
 static const struct spi_device_id ad7793_id[] = {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 05/13] iio: adc: ad7793: use dev_err_probe
  2026-03-30 11:18 [PATCH 00/13] iio: adc: use dev_err_probe in probe paths Antoniu Miclaus
                   ` (3 preceding siblings ...)
  2026-03-30 11:18 ` [PATCH 04/13] iio: adc: ad7793: add dev variable Antoniu Miclaus
@ 2026-03-30 11:18 ` Antoniu Miclaus
  2026-04-12 18:58   ` Jonathan Cameron
  2026-03-30 11:18 ` [PATCH 06/13] iio: adc: ad7292: add dev variable Antoniu Miclaus
                   ` (8 subsequent siblings)
  13 siblings, 1 reply; 17+ messages in thread
From: Antoniu Miclaus @ 2026-03-30 11:18 UTC (permalink / raw)
  To: Jorge Marques, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, David Lechner, Nuno Sá, Marcelo Schmitt,
	Renato Lui Geh, linux-iio, linux-kernel
  Cc: Antoniu Miclaus

Use dev_err_probe() instead of dev_err() in the probe path to ensure
proper handling of deferred probing and to simplify error handling.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
 drivers/iio/adc/ad7793.c | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/drivers/iio/adc/ad7793.c b/drivers/iio/adc/ad7793.c
index 21c667e37b31..624530cce938 100644
--- a/drivers/iio/adc/ad7793.c
+++ b/drivers/iio/adc/ad7793.c
@@ -278,8 +278,8 @@ static int ad7793_setup(struct iio_dev *indio_dev,
 	id &= AD7793_ID_MASK;
 
 	if (id != st->chip_info->id) {
-		ret = -ENODEV;
-		dev_err(&st->sd.spi->dev, "device ID query failed\n");
+		ret = dev_err_probe(&st->sd.spi->dev, -ENODEV,
+				    "device ID query failed\n");
 		goto out;
 	}
 
@@ -338,8 +338,7 @@ static int ad7793_setup(struct iio_dev *indio_dev,
 
 	return 0;
 out:
-	dev_err(&st->sd.spi->dev, "setup failed\n");
-	return ret;
+	return dev_err_probe(&st->sd.spi->dev, ret, "setup failed\n");
 }
 
 static const u16 ad7793_sample_freq_avail[16] = {0, 470, 242, 123, 62, 50, 39,
@@ -780,15 +779,11 @@ static int ad7793_probe(struct spi_device *spi)
 	struct iio_dev *indio_dev;
 	int ret, vref_mv = 0;
 
-	if (!pdata) {
-		dev_err(&spi->dev, "no platform data?\n");
-		return -ENODEV;
-	}
+	if (!pdata)
+		return dev_err_probe(dev, -ENODEV, "no platform data?\n");
 
-	if (!spi->irq) {
-		dev_err(&spi->dev, "no IRQ?\n");
-		return -ENODEV;
-	}
+	if (!spi->irq)
+		return dev_err_probe(dev, -ENODEV, "no IRQ?\n");
 
 	indio_dev = devm_iio_device_alloc(dev, sizeof(*st));
 	if (indio_dev == NULL)
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 06/13] iio: adc: ad7292: add dev variable
  2026-03-30 11:18 [PATCH 00/13] iio: adc: use dev_err_probe in probe paths Antoniu Miclaus
                   ` (4 preceding siblings ...)
  2026-03-30 11:18 ` [PATCH 05/13] iio: adc: ad7793: use dev_err_probe Antoniu Miclaus
@ 2026-03-30 11:18 ` Antoniu Miclaus
  2026-03-30 11:18 ` [PATCH 07/13] iio: adc: ad7292: use dev_err_probe Antoniu Miclaus
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Antoniu Miclaus @ 2026-03-30 11:18 UTC (permalink / raw)
  To: Jorge Marques, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, David Lechner, Nuno Sá, Marcelo Schmitt,
	Renato Lui Geh, linux-iio, linux-kernel
  Cc: Antoniu Miclaus

Add a local struct device pointer to simplify repeated &spi->dev
dereferences throughout the probe function.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
 drivers/iio/adc/ad7292.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/iio/adc/ad7292.c b/drivers/iio/adc/ad7292.c
index a398973f313d..64d40b053582 100644
--- a/drivers/iio/adc/ad7292.c
+++ b/drivers/iio/adc/ad7292.c
@@ -253,12 +253,13 @@ static const struct iio_info ad7292_info = {
 
 static int ad7292_probe(struct spi_device *spi)
 {
+	struct device *dev = &spi->dev;
 	struct ad7292_state *st;
 	struct iio_dev *indio_dev;
 	bool diff_channels = false;
 	int ret;
 
-	indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
+	indio_dev = devm_iio_device_alloc(dev, sizeof(*st));
 	if (!indio_dev)
 		return -ENOMEM;
 
@@ -271,7 +272,7 @@ static int ad7292_probe(struct spi_device *spi)
 		return -EINVAL;
 	}
 
-	ret = devm_regulator_get_enable_read_voltage(&spi->dev, "vref");
+	ret = devm_regulator_get_enable_read_voltage(dev, "vref");
 	if (ret < 0 && ret != -ENODEV)
 		return ret;
 
@@ -281,7 +282,7 @@ static int ad7292_probe(struct spi_device *spi)
 	indio_dev->modes = INDIO_DIRECT_MODE;
 	indio_dev->info = &ad7292_info;
 
-	device_for_each_child_node_scoped(&spi->dev, child) {
+	device_for_each_child_node_scoped(dev, child) {
 		diff_channels = fwnode_property_read_bool(child,
 							  "diff-channels");
 		if (diff_channels)
@@ -296,7 +297,7 @@ static int ad7292_probe(struct spi_device *spi)
 		indio_dev->channels = ad7292_channels;
 	}
 
-	return devm_iio_device_register(&spi->dev, indio_dev);
+	return devm_iio_device_register(dev, indio_dev);
 }
 
 static const struct spi_device_id ad7292_id_table[] = {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 07/13] iio: adc: ad7292: use dev_err_probe
  2026-03-30 11:18 [PATCH 00/13] iio: adc: use dev_err_probe in probe paths Antoniu Miclaus
                   ` (5 preceding siblings ...)
  2026-03-30 11:18 ` [PATCH 06/13] iio: adc: ad7292: add dev variable Antoniu Miclaus
@ 2026-03-30 11:18 ` Antoniu Miclaus
  2026-03-30 11:18 ` [PATCH 08/13] iio: adc: ad7791: add dev variable Antoniu Miclaus
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Antoniu Miclaus @ 2026-03-30 11:18 UTC (permalink / raw)
  To: Jorge Marques, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, David Lechner, Nuno Sá, Marcelo Schmitt,
	Renato Lui Geh, linux-iio, linux-kernel
  Cc: Antoniu Miclaus

Use dev_err_probe() instead of dev_err() in the probe path to ensure
proper handling of deferred probing and to simplify error handling.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
 drivers/iio/adc/ad7292.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/iio/adc/ad7292.c b/drivers/iio/adc/ad7292.c
index 64d40b053582..e5ad83d2240a 100644
--- a/drivers/iio/adc/ad7292.c
+++ b/drivers/iio/adc/ad7292.c
@@ -267,10 +267,9 @@ static int ad7292_probe(struct spi_device *spi)
 	st->spi = spi;
 
 	ret = ad7292_spi_reg_read(st, AD7292_REG_VENDOR_ID);
-	if (ret != ADI_VENDOR_ID) {
-		dev_err(&spi->dev, "Wrong vendor id 0x%x\n", ret);
-		return -EINVAL;
-	}
+	if (ret != ADI_VENDOR_ID)
+		return dev_err_probe(dev, -EINVAL,
+				     "Wrong vendor id 0x%x\n", ret);
 
 	ret = devm_regulator_get_enable_read_voltage(dev, "vref");
 	if (ret < 0 && ret != -ENODEV)
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 08/13] iio: adc: ad7791: add dev variable
  2026-03-30 11:18 [PATCH 00/13] iio: adc: use dev_err_probe in probe paths Antoniu Miclaus
                   ` (6 preceding siblings ...)
  2026-03-30 11:18 ` [PATCH 07/13] iio: adc: ad7292: use dev_err_probe Antoniu Miclaus
@ 2026-03-30 11:18 ` Antoniu Miclaus
  2026-03-30 11:18 ` [PATCH 09/13] iio: adc: ad7791: use dev_err_probe Antoniu Miclaus
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Antoniu Miclaus @ 2026-03-30 11:18 UTC (permalink / raw)
  To: Jorge Marques, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, David Lechner, Nuno Sá, Marcelo Schmitt,
	Renato Lui Geh, linux-iio, linux-kernel
  Cc: Antoniu Miclaus

Add a local struct device pointer to simplify repeated &spi->dev
dereferences throughout the probe function.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
 drivers/iio/adc/ad7791.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/drivers/iio/adc/ad7791.c b/drivers/iio/adc/ad7791.c
index 041fc25e3209..ab1ab0d88492 100644
--- a/drivers/iio/adc/ad7791.c
+++ b/drivers/iio/adc/ad7791.c
@@ -407,7 +407,8 @@ static void ad7791_reg_disable(void *reg)
 
 static int ad7791_probe(struct spi_device *spi)
 {
-	const struct ad7791_platform_data *pdata = dev_get_platdata(&spi->dev);
+	struct device *dev = &spi->dev;
+	const struct ad7791_platform_data *pdata = dev_get_platdata(dev);
 	struct iio_dev *indio_dev;
 	struct ad7791_state *st;
 	int ret;
@@ -417,13 +418,13 @@ static int ad7791_probe(struct spi_device *spi)
 		return -ENXIO;
 	}
 
-	indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
+	indio_dev = devm_iio_device_alloc(dev, sizeof(*st));
 	if (!indio_dev)
 		return -ENOMEM;
 
 	st = iio_priv(indio_dev);
 
-	st->reg = devm_regulator_get(&spi->dev, "refin");
+	st->reg = devm_regulator_get(dev, "refin");
 	if (IS_ERR(st->reg))
 		return PTR_ERR(st->reg);
 
@@ -431,7 +432,7 @@ static int ad7791_probe(struct spi_device *spi)
 	if (ret)
 		return ret;
 
-	ret = devm_add_action_or_reset(&spi->dev, ad7791_reg_disable, st->reg);
+	ret = devm_add_action_or_reset(dev, ad7791_reg_disable, st->reg);
 	if (ret)
 		return ret;
 
@@ -447,7 +448,7 @@ static int ad7791_probe(struct spi_device *spi)
 	else
 		indio_dev->info = &ad7791_no_filter_info;
 
-	ret = devm_ad_sd_setup_buffer_and_trigger(&spi->dev, indio_dev);
+	ret = devm_ad_sd_setup_buffer_and_trigger(dev, indio_dev);
 	if (ret)
 		return ret;
 
@@ -455,7 +456,7 @@ static int ad7791_probe(struct spi_device *spi)
 	if (ret)
 		return ret;
 
-	return devm_iio_device_register(&spi->dev, indio_dev);
+	return devm_iio_device_register(dev, indio_dev);
 }
 
 static const struct spi_device_id ad7791_spi_ids[] = {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 09/13] iio: adc: ad7791: use dev_err_probe
  2026-03-30 11:18 [PATCH 00/13] iio: adc: use dev_err_probe in probe paths Antoniu Miclaus
                   ` (7 preceding siblings ...)
  2026-03-30 11:18 ` [PATCH 08/13] iio: adc: ad7791: add dev variable Antoniu Miclaus
@ 2026-03-30 11:18 ` Antoniu Miclaus
  2026-03-30 11:18 ` [PATCH 10/13] iio: adc: ad7280a: " Antoniu Miclaus
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Antoniu Miclaus @ 2026-03-30 11:18 UTC (permalink / raw)
  To: Jorge Marques, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, David Lechner, Nuno Sá, Marcelo Schmitt,
	Renato Lui Geh, linux-iio, linux-kernel
  Cc: Antoniu Miclaus

Use dev_err_probe() instead of dev_err() in the probe path to ensure
proper handling of deferred probing and to simplify error handling.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
 drivers/iio/adc/ad7791.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/iio/adc/ad7791.c b/drivers/iio/adc/ad7791.c
index ab1ab0d88492..bcdc19e799aa 100644
--- a/drivers/iio/adc/ad7791.c
+++ b/drivers/iio/adc/ad7791.c
@@ -413,10 +413,8 @@ static int ad7791_probe(struct spi_device *spi)
 	struct ad7791_state *st;
 	int ret;
 
-	if (!spi->irq) {
-		dev_err(&spi->dev, "Missing IRQ.\n");
-		return -ENXIO;
-	}
+	if (!spi->irq)
+		return dev_err_probe(dev, -ENXIO, "Missing IRQ.\n");
 
 	indio_dev = devm_iio_device_alloc(dev, sizeof(*st));
 	if (!indio_dev)
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 10/13] iio: adc: ad7280a: use dev_err_probe
  2026-03-30 11:18 [PATCH 00/13] iio: adc: use dev_err_probe in probe paths Antoniu Miclaus
                   ` (8 preceding siblings ...)
  2026-03-30 11:18 ` [PATCH 09/13] iio: adc: ad7791: use dev_err_probe Antoniu Miclaus
@ 2026-03-30 11:18 ` Antoniu Miclaus
  2026-03-30 11:18 ` [PATCH 11/13] iio: adc: ad7768-1: " Antoniu Miclaus
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Antoniu Miclaus @ 2026-03-30 11:18 UTC (permalink / raw)
  To: Jorge Marques, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, David Lechner, Nuno Sá, Marcelo Schmitt,
	Renato Lui Geh, linux-iio, linux-kernel
  Cc: Antoniu Miclaus

Use dev_err_probe() instead of dev_err() in the probe path to ensure
proper handling of deferred probing and to simplify error handling.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
 drivers/iio/adc/ad7280a.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/iio/adc/ad7280a.c b/drivers/iio/adc/ad7280a.c
index ba12a3796e2b..f50e2b3121bf 100644
--- a/drivers/iio/adc/ad7280a.c
+++ b/drivers/iio/adc/ad7280a.c
@@ -990,8 +990,8 @@ static int ad7280_probe(struct spi_device *spi)
 			st->acquisition_time = AD7280A_CTRL_LB_ACQ_TIME_1600ns;
 			break;
 		default:
-			dev_err(dev, "Firmware provided acquisition time is invalid\n");
-			return -EINVAL;
+			return dev_err_probe(dev, -EINVAL,
+					     "Firmware provided acquisition time is invalid\n");
 		}
 	} else {
 		st->acquisition_time = AD7280A_CTRL_LB_ACQ_TIME_400ns;
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 11/13] iio: adc: ad7768-1: use dev_err_probe
  2026-03-30 11:18 [PATCH 00/13] iio: adc: use dev_err_probe in probe paths Antoniu Miclaus
                   ` (9 preceding siblings ...)
  2026-03-30 11:18 ` [PATCH 10/13] iio: adc: ad7280a: " Antoniu Miclaus
@ 2026-03-30 11:18 ` Antoniu Miclaus
  2026-03-30 11:18 ` [PATCH 12/13] iio: adc: ad9467: " Antoniu Miclaus
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 17+ messages in thread
From: Antoniu Miclaus @ 2026-03-30 11:18 UTC (permalink / raw)
  To: Jorge Marques, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, David Lechner, Nuno Sá, Marcelo Schmitt,
	Renato Lui Geh, linux-iio, linux-kernel
  Cc: Antoniu Miclaus

Use dev_err_probe() instead of dev_err() in the probe path to ensure
proper handling of deferred probing and to simplify error handling.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
 drivers/iio/adc/ad7768-1.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/iio/adc/ad7768-1.c b/drivers/iio/adc/ad7768-1.c
index 73fb734d06b2..598936e47fd2 100644
--- a/drivers/iio/adc/ad7768-1.c
+++ b/drivers/iio/adc/ad7768-1.c
@@ -1871,10 +1871,8 @@ static int ad7768_probe(struct spi_device *spi)
 		return ret;
 
 	ret = ad7768_setup(indio_dev);
-	if (ret < 0) {
-		dev_err(&spi->dev, "AD7768 setup failed\n");
-		return ret;
-	}
+	if (ret < 0)
+		return dev_err_probe(dev, ret, "AD7768 setup failed\n");
 
 	init_completion(&st->completion);
 	ret = devm_mutex_init(&spi->dev, &st->pga_lock);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 12/13] iio: adc: ad9467: use dev_err_probe
  2026-03-30 11:18 [PATCH 00/13] iio: adc: use dev_err_probe in probe paths Antoniu Miclaus
                   ` (10 preceding siblings ...)
  2026-03-30 11:18 ` [PATCH 11/13] iio: adc: ad7768-1: " Antoniu Miclaus
@ 2026-03-30 11:18 ` Antoniu Miclaus
  2026-03-30 12:02   ` Tomas Melin
  2026-03-30 11:18 ` [PATCH 13/13] iio: adc: ad4062: " Antoniu Miclaus
  2026-04-12 19:02 ` [PATCH 00/13] iio: adc: use dev_err_probe in probe paths Jonathan Cameron
  13 siblings, 1 reply; 17+ messages in thread
From: Antoniu Miclaus @ 2026-03-30 11:18 UTC (permalink / raw)
  To: Jorge Marques, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, David Lechner, Nuno Sá, Marcelo Schmitt,
	Renato Lui Geh, linux-iio, linux-kernel
  Cc: Antoniu Miclaus

Use dev_err_probe() instead of dev_err() in the probe path to ensure
proper handling of deferred probing and to simplify error handling.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
 drivers/iio/adc/ad9467.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/drivers/iio/adc/ad9467.c b/drivers/iio/adc/ad9467.c
index 0bf67437508f..0c377f9a7f25 100644
--- a/drivers/iio/adc/ad9467.c
+++ b/drivers/iio/adc/ad9467.c
@@ -1349,11 +1349,10 @@ static int ad9467_probe(struct spi_device *spi)
 		return ret;
 
 	id = ad9467_spi_read(st, AN877_ADC_REG_CHIP_ID);
-	if (id != st->info->id) {
-		dev_err(dev, "Mismatch CHIP_ID, got 0x%X, expected 0x%X\n",
-			id, st->info->id);
-		return -ENODEV;
-	}
+	if (id != st->info->id)
+		return dev_err_probe(dev, -ENODEV,
+				     "Mismatch CHIP_ID, got 0x%X, expected 0x%X\n",
+				     id, st->info->id);
 
 	if (st->info->num_scales > 1)
 		indio_dev->info = &ad9467_info;
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* [PATCH 13/13] iio: adc: ad4062: use dev_err_probe
  2026-03-30 11:18 [PATCH 00/13] iio: adc: use dev_err_probe in probe paths Antoniu Miclaus
                   ` (11 preceding siblings ...)
  2026-03-30 11:18 ` [PATCH 12/13] iio: adc: ad9467: " Antoniu Miclaus
@ 2026-03-30 11:18 ` Antoniu Miclaus
  2026-04-12 19:02 ` [PATCH 00/13] iio: adc: use dev_err_probe in probe paths Jonathan Cameron
  13 siblings, 0 replies; 17+ messages in thread
From: Antoniu Miclaus @ 2026-03-30 11:18 UTC (permalink / raw)
  To: Jorge Marques, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, David Lechner, Nuno Sá, Marcelo Schmitt,
	Renato Lui Geh, linux-iio, linux-kernel
  Cc: Antoniu Miclaus

Use dev_err_probe() instead of dev_err() in the probe path to ensure
proper handling of deferred probing and to simplify error handling.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
---
 drivers/iio/adc/ad4062.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/iio/adc/ad4062.c b/drivers/iio/adc/ad4062.c
index c864de3b46ba..8942c79e8d83 100644
--- a/drivers/iio/adc/ad4062.c
+++ b/drivers/iio/adc/ad4062.c
@@ -436,10 +436,9 @@ static int ad4062_check_ids(struct ad4062_state *st)
 		return ret;
 
 	val = be16_to_cpu(st->buf.be16);
-	if (val != AD4062_I3C_VENDOR) {
-		dev_err(dev, "Vendor ID x%x does not match expected value\n", val);
-		return -ENODEV;
-	}
+	if (val != AD4062_I3C_VENDOR)
+		return dev_err_probe(dev, -ENODEV,
+				     "Vendor ID x%x does not match expected value\n", val);
 
 	return 0;
 }
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 17+ messages in thread

* Re: [PATCH 12/13] iio: adc: ad9467: use dev_err_probe
  2026-03-30 11:18 ` [PATCH 12/13] iio: adc: ad9467: " Antoniu Miclaus
@ 2026-03-30 12:02   ` Tomas Melin
  0 siblings, 0 replies; 17+ messages in thread
From: Tomas Melin @ 2026-03-30 12:02 UTC (permalink / raw)
  To: Antoniu Miclaus, Jorge Marques, Lars-Peter Clausen,
	Michael Hennerich, Jonathan Cameron, David Lechner, Nuno Sá,
	Marcelo Schmitt, Renato Lui Geh, linux-iio, linux-kernel


On 30/03/2026 14:18, Antoniu Miclaus wrote:
> Use dev_err_probe() instead of dev_err() in the probe path to ensure
> proper handling of deferred probing and to simplify error handling.
>
> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>

Reviewed-by: Tomas Melin <tomas.melin@vaisala.com>

> ---
>   drivers/iio/adc/ad9467.c | 9 ++++-----
>   1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/iio/adc/ad9467.c b/drivers/iio/adc/ad9467.c
> index 0bf67437508f..0c377f9a7f25 100644
> --- a/drivers/iio/adc/ad9467.c
> +++ b/drivers/iio/adc/ad9467.c
> @@ -1349,11 +1349,10 @@ static int ad9467_probe(struct spi_device *spi)
>   		return ret;
>   
>   	id = ad9467_spi_read(st, AN877_ADC_REG_CHIP_ID);
> -	if (id != st->info->id) {
> -		dev_err(dev, "Mismatch CHIP_ID, got 0x%X, expected 0x%X\n",
> -			id, st->info->id);
> -		return -ENODEV;
> -	}
> +	if (id != st->info->id)
> +		return dev_err_probe(dev, -ENODEV,
> +				     "Mismatch CHIP_ID, got 0x%X, expected 0x%X\n",
> +				     id, st->info->id);
>   
>   	if (st->info->num_scales > 1)
>   		indio_dev->info = &ad9467_info;

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 05/13] iio: adc: ad7793: use dev_err_probe
  2026-03-30 11:18 ` [PATCH 05/13] iio: adc: ad7793: use dev_err_probe Antoniu Miclaus
@ 2026-04-12 18:58   ` Jonathan Cameron
  0 siblings, 0 replies; 17+ messages in thread
From: Jonathan Cameron @ 2026-04-12 18:58 UTC (permalink / raw)
  To: Antoniu Miclaus
  Cc: Jorge Marques, Lars-Peter Clausen, Michael Hennerich,
	David Lechner, Nuno Sá, Marcelo Schmitt, Renato Lui Geh,
	linux-iio, linux-kernel

On Mon, 30 Mar 2026 14:18:48 +0300
Antoniu Miclaus <antoniu.miclaus@analog.com> wrote:

> Use dev_err_probe() instead of dev_err() in the probe path to ensure
> proper handling of deferred probing and to simplify error handling.
> 
> Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
> ---
>  drivers/iio/adc/ad7793.c | 19 +++++++------------
>  1 file changed, 7 insertions(+), 12 deletions(-)
> 
> diff --git a/drivers/iio/adc/ad7793.c b/drivers/iio/adc/ad7793.c
> index 21c667e37b31..624530cce938 100644
> --- a/drivers/iio/adc/ad7793.c
> +++ b/drivers/iio/adc/ad7793.c
> @@ -278,8 +278,8 @@ static int ad7793_setup(struct iio_dev *indio_dev,
>  	id &= AD7793_ID_MASK;
>  
>  	if (id != st->chip_info->id) {
> -		ret = -ENODEV;
> -		dev_err(&st->sd.spi->dev, "device ID query failed\n");
> +		ret = dev_err_probe(&st->sd.spi->dev, -ENODEV,

There are quite a few instances of this dereference nest.
Unless other things come up in this set I don't mind it being dealt
with separately but to me it seems like a helper to make this
		ret = dev_err_probe(adi_sigma_delta_get_dev(&st->sd), -ENODEV,
might be nice?  Longer line but avoids diving into the implementation details
in a driver that shouldn't really be doing that.


> +				    "device ID query failed\n");
>  		goto out;
>  	}
>  
> @@ -338,8 +338,7 @@ static int ad7793_setup(struct iio_dev *indio_dev,
>  
>  	return 0;
>  out:
> -	dev_err(&st->sd.spi->dev, "setup failed\n");
> -	return ret;
> +	return dev_err_probe(&st->sd.spi->dev, ret, "setup failed\n");
>  }
>  
>  static const u16 ad7793_sample_freq_avail[16] = {0, 470, 242, 123, 62, 50, 39,
> @@ -780,15 +779,11 @@ static int ad7793_probe(struct spi_device *spi)
>  	struct iio_dev *indio_dev;
>  	int ret, vref_mv = 0;
>  
> -	if (!pdata) {
> -		dev_err(&spi->dev, "no platform data?\n");
> -		return -ENODEV;
> -	}
> +	if (!pdata)
> +		return dev_err_probe(dev, -ENODEV, "no platform data?\n");
>  
> -	if (!spi->irq) {
> -		dev_err(&spi->dev, "no IRQ?\n");
> -		return -ENODEV;
> -	}
> +	if (!spi->irq)
> +		return dev_err_probe(dev, -ENODEV, "no IRQ?\n");
>  
>  	indio_dev = devm_iio_device_alloc(dev, sizeof(*st));
>  	if (indio_dev == NULL)


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [PATCH 00/13] iio: adc: use dev_err_probe in probe paths
  2026-03-30 11:18 [PATCH 00/13] iio: adc: use dev_err_probe in probe paths Antoniu Miclaus
                   ` (12 preceding siblings ...)
  2026-03-30 11:18 ` [PATCH 13/13] iio: adc: ad4062: " Antoniu Miclaus
@ 2026-04-12 19:02 ` Jonathan Cameron
  13 siblings, 0 replies; 17+ messages in thread
From: Jonathan Cameron @ 2026-04-12 19:02 UTC (permalink / raw)
  To: Antoniu Miclaus
  Cc: Jorge Marques, Lars-Peter Clausen, Michael Hennerich,
	David Lechner, Nuno Sá, Marcelo Schmitt, Renato Lui Geh,
	linux-iio, linux-kernel

On Mon, 30 Mar 2026 14:18:43 +0300
Antoniu Miclaus <antoniu.miclaus@analog.com> wrote:

> This series converts dev_err() calls to dev_err_probe() in the probe
> paths of various IIO ADC drivers. This ensures proper handling of
> deferred probing and simplifies error handling.
> 
> Where needed, a local struct device pointer is introduced first to
> reduce repeated &spi->dev dereferences throughout the probe function.
> 
> Drivers addressed:
>   - ad7949, ad7780, ad7793, ad7292, ad7791, ad7280a, ad7768-1,
>     ad9467, ad4062

Applied with the minor tweak of adding () to dev_err_probe in the
patch titles.

Thanks,

Jonathan

> 
> Antoniu Miclaus (13):
>   iio: adc: ad7949: use dev_err_probe
>   iio: adc: ad7780: add dev variable
>   iio: adc: ad7780: use dev_err_probe
>   iio: adc: ad7793: add dev variable
>   iio: adc: ad7793: use dev_err_probe
>   iio: adc: ad7292: add dev variable
>   iio: adc: ad7292: use dev_err_probe
>   iio: adc: ad7791: add dev variable
>   iio: adc: ad7791: use dev_err_probe
>   iio: adc: ad7280a: use dev_err_probe
>   iio: adc: ad7768-1: use dev_err_probe
>   iio: adc: ad9467: use dev_err_probe
>   iio: adc: ad4062: use dev_err_probe
> 
>  drivers/iio/adc/ad4062.c   |  7 +++---
>  drivers/iio/adc/ad7280a.c  |  4 ++--
>  drivers/iio/adc/ad7292.c   | 16 ++++++-------
>  drivers/iio/adc/ad7768-1.c |  6 ++---
>  drivers/iio/adc/ad7780.c   | 46 ++++++++++++++++----------------------
>  drivers/iio/adc/ad7791.c   | 19 ++++++++--------
>  drivers/iio/adc/ad7793.c   | 30 +++++++++++--------------
>  drivers/iio/adc/ad7949.c   | 25 ++++++++-------------
>  drivers/iio/adc/ad9467.c   |  9 ++++----
>  9 files changed, 69 insertions(+), 93 deletions(-)
> 


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2026-04-12 19:02 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-30 11:18 [PATCH 00/13] iio: adc: use dev_err_probe in probe paths Antoniu Miclaus
2026-03-30 11:18 ` [PATCH 01/13] iio: adc: ad7949: use dev_err_probe Antoniu Miclaus
2026-03-30 11:18 ` [PATCH 02/13] iio: adc: ad7780: add dev variable Antoniu Miclaus
2026-03-30 11:18 ` [PATCH 03/13] iio: adc: ad7780: use dev_err_probe Antoniu Miclaus
2026-03-30 11:18 ` [PATCH 04/13] iio: adc: ad7793: add dev variable Antoniu Miclaus
2026-03-30 11:18 ` [PATCH 05/13] iio: adc: ad7793: use dev_err_probe Antoniu Miclaus
2026-04-12 18:58   ` Jonathan Cameron
2026-03-30 11:18 ` [PATCH 06/13] iio: adc: ad7292: add dev variable Antoniu Miclaus
2026-03-30 11:18 ` [PATCH 07/13] iio: adc: ad7292: use dev_err_probe Antoniu Miclaus
2026-03-30 11:18 ` [PATCH 08/13] iio: adc: ad7791: add dev variable Antoniu Miclaus
2026-03-30 11:18 ` [PATCH 09/13] iio: adc: ad7791: use dev_err_probe Antoniu Miclaus
2026-03-30 11:18 ` [PATCH 10/13] iio: adc: ad7280a: " Antoniu Miclaus
2026-03-30 11:18 ` [PATCH 11/13] iio: adc: ad7768-1: " Antoniu Miclaus
2026-03-30 11:18 ` [PATCH 12/13] iio: adc: ad9467: " Antoniu Miclaus
2026-03-30 12:02   ` Tomas Melin
2026-03-30 11:18 ` [PATCH 13/13] iio: adc: ad4062: " Antoniu Miclaus
2026-04-12 19:02 ` [PATCH 00/13] iio: adc: use dev_err_probe in probe paths Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox