Linux IIO development
 help / color / mirror / Atom feed
* [PATCH 0/2] iio: adc: Modernize legacy regulator calls in drivers
@ 2025-04-29 16:05 Cesar Bispo
  2025-04-29 16:05 ` [PATCH 1/2] iio: adc: ad7476: modernize single regulator call Cesar Bispo
  2025-04-29 16:05 ` [PATCH 2/2] iio: adc: qcom-pm8xxx-xoadc: " Cesar Bispo
  0 siblings, 2 replies; 5+ messages in thread
From: Cesar Bispo @ 2025-04-29 16:05 UTC (permalink / raw)
  To: jic23; +Cc: linux-iio, Cesar Bispo, GabrIel Ferreira

Replace a single instance of legacy regulator handling in each driver
with devm_regulator_get_enable() or devm_regulator_get_enable_optional().
This change improves code clarity and aligns with modern kernel APIs.

Signed-off-by: Cesar Bispo <cesar.bispo@ime.usp.br>
Co-developed-by: GabrIel Ferreira <gabrielfsouza.araujo@usp.br>
Signed-off-by: GabrIel Ferreira <gabrielfsouza.araujo@usp.br>

Cesar Bispo (2):
  iio: adc: ad7476: modernize single regulator call
  iio: adc: qcom-pm8xxx-xoadc: modernize single regulator call

 drivers/iio/adc/ad7476.c            | 6 +++---
 drivers/iio/adc/qcom-pm8xxx-xoadc.c | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2025-04-29 17:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-29 16:05 [PATCH 0/2] iio: adc: Modernize legacy regulator calls in drivers Cesar Bispo
2025-04-29 16:05 ` [PATCH 1/2] iio: adc: ad7476: modernize single regulator call Cesar Bispo
2025-04-29 17:37   ` Jonathan Cameron
2025-04-29 16:05 ` [PATCH 2/2] iio: adc: qcom-pm8xxx-xoadc: " Cesar Bispo
2025-04-29 17:38   ` Jonathan Cameron

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