Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/6] iio: adc: bcm_iproc_adc: convert to devm-managed APIs
@ 2026-09-05  9:36 mdshahid03
  2026-09-05  9:36 ` [PATCH v3 1/6] iio: adc: bcm_iproc_adc: sort headers alphabetically mdshahid03
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: mdshahid03 @ 2026-09-05  9:36 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: David Lechner, Nuno Sá, Andy Shevchenko, Ray Jui,
	Scott Branden, bcm-kernel-feedback-list, linux-iio,
	linux-arm-kernel, linux-kernel, Mohammad Shahid

From: Mohammad Shahid <mdshahid03@gmail.com>

Convert the bcm_iproc_adc driver to use devm-managed APIs to simplify
resource management and cleanup.

Changes in v3:

-Add the missing direct include dependencies.
-Split the clock and ADC cleanup conversions into separate patches.
-Use devm_clk_get_enabled() for clock management.
-Use devm_add_action_or_reset() for ADC cleanup.
-Remove platform_set_drvdata() and the remove callback when converting
 to devm_iio_device_register().
-Simplify the devm_iio_device_register() return path.

---
Mohammad Shahid (6):
  iio: adc: bcm_iproc_adc: sort headers alphabetically
  iio: adc: bcm_iproc_adc: fix include dependencies
  iio: adc: bcm_iproc_adc: use devm-managed clock
  iio: adc: bcm_iproc_adc: use devm-managed ADC cleanup
  iio: adc: bcm_iproc_adc: use devm-managed mutex initialization
  iio: adc: bcm_iproc_adc: use devm_iio_device_register()

 drivers/iio/adc/bcm_iproc_adc.c | 67 +++++++++++++--------------------
 1 file changed, 27 insertions(+), 40 deletions(-)

-- 
2.43.0



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

end of thread, other threads:[~2026-09-05  9:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-05  9:36 [PATCH v3 0/6] iio: adc: bcm_iproc_adc: convert to devm-managed APIs mdshahid03
2026-09-05  9:36 ` [PATCH v3 1/6] iio: adc: bcm_iproc_adc: sort headers alphabetically mdshahid03
2026-09-05  9:36 ` [PATCH v3 2/6] iio: adc: bcm_iproc_adc: fix include dependencies mdshahid03
2026-09-05  9:36 ` [PATCH v3 3/6] iio: adc: bcm_iproc_adc: use devm-managed clock mdshahid03
2026-09-05  9:36 ` [PATCH v3 4/6] iio: adc: bcm_iproc_adc: use devm-managed ADC cleanup mdshahid03
2026-09-05  9:36 ` [PATCH v3 5/6] iio: adc: bcm_iproc_adc: use devm-managed mutex initialization mdshahid03
2026-09-05  9:36 ` [PATCH v3 6/6] iio: adc: bcm_iproc_adc: use devm_iio_device_register() mdshahid03

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