mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/3] iio: adc: twl6030-gpadc: convert probe/remove cleanup to devm
@ 2026-11-23  3:53 Wanhui Fu
  2026-11-23  3:53 ` [PATCH v2 1/3] iio: adc: twl6030-gpadc: use devm_add_action_or_reset() to disable IRQ Wanhui Fu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Wanhui Fu @ 2026-11-23  3:53 UTC (permalink / raw)
  To: Jonathan Cameron, linux-iio
  Cc: Andreas Kemnade, David Lechner, Nuno Sá,
	Andy Shevchenko, linux-kernel, 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 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] 4+ messages in thread

end of thread, other threads:[~2026-11-23  3:54 UTC | newest]

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

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

all inboxes | Powered by JetHome®