Linux IIO development
 help / color / mirror / Atom feed
* [PATCH v3 0/3] iio: adc: twl6030-gpadc: convert probe/remove cleanup to devm
@ 2026-11-30  3:03 Wanhui Fu
  2026-11-30  3:03 ` [PATCH v3 1/3] iio: adc: twl6030-gpadc: use devm_add_action_or_reset() to disable IRQ Wanhui Fu
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Wanhui Fu @ 2026-11-30  3:03 UTC (permalink / raw)
  To: jic23, dlechner, nuno.sa, andy, bhelgaas, giorgitchankvetadze1997,
	o-takashi, kees+treewide, u.kleine-koenig
  Cc: linux-iio, Wanhui Fu

This series converts twl6030-gpadc's probe error
handling and remove path to devm cleanup, and
deletes redundant dev_err() messages in probe.

- Patch 1 registers twl6030_gpadc_disable_irq()
  with devm_add_action_or_reset().
- Patch 2 converts iio_device_register() to
  devm_iio_device_register().
- Patch 3 deletes redundant dev_err() messages in probe.

Compile-tested only.

Changes in v3:
- Add some details in Patch 1's commit message.
- No code changes. Patches 2 and 3 are unchanged.

Changes in v2:
- Use devm_add_action_or_reset() instead of a
  goto error path. Thanks, Jonathan!
- Convert to devm_iio_device_register() and drop
  remove(). Thanks, Jonathan!
- Drop redundant dev_err() messages after twl_i2c_write_u8().
  Thanks, Andreas!

Wanhui Fu (3):
  iio: adc: twl6030-gpadc: use devm_add_action_or_reset() to disable IRQ
  iio: adc: twl6030-gpadc: switch to devm_iio_device_register()
  iio: adc: twl6030-gpadc: delete redundant dev_err() messages in probe

 drivers/iio/adc/twl6030-gpadc.c | 41 ++++++++++++---------------------
 1 file changed, 15 insertions(+), 26 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2026-11-30  9:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30  3:03 [PATCH v3 0/3] iio: adc: twl6030-gpadc: convert probe/remove cleanup to devm Wanhui Fu
2026-11-30  3:03 ` [PATCH v3 1/3] iio: adc: twl6030-gpadc: use devm_add_action_or_reset() to disable IRQ Wanhui Fu
2026-11-30  9:13   ` Joshua Crofts
2026-11-30  3:03 ` [PATCH v3 2/3] iio: adc: twl6030-gpadc: switch to devm_iio_device_register() Wanhui Fu
2026-11-30  9:11   ` Joshua Crofts
2026-11-30  3:03 ` [PATCH v3 3/3] iio: adc: twl6030-gpadc: delete redundant dev_err() messages in probe Wanhui Fu
2026-11-30  9:14   ` Joshua Crofts

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