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

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