public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH next 0/4] IIO: sca3000: devm resource management
@ 2026-01-30 21:43 Harshit Mogalapalli
  2026-01-30 21:43 ` [PATCH next 1/4] iio: sca3000: cache SPI device ID in probe Harshit Mogalapalli
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Harshit Mogalapalli @ 2026-01-30 21:43 UTC (permalink / raw)
  To: Jonathan Cameron, David Lechner, Nuno Sá, Andy Shevchenko,
	Harshit Mogalapalli, Andrew Ijano, Gustavo Bastos,
	open list:IIO SUBSYSTEM AND DRIVERS, open list
  Cc: kernel-janitors

Hi,

This is an attempt to update sca3000 accelerometer driver to make use
of devm_ based helpers where needed. I have split it into 4 patches.

Patch 1 does some refactoring and simplification.
Patch 2 switches request_threaded_irq() over to the devm helper.
Patch 3 converts iio_device_register() to its managed counterpart.
Patch 4 replaces the remove() callback with devm_add_action_or_reset()
        while preserving the existing iio_device_unregister() ->
        disable interrupts sequence. I would welcome an extra look at
	this patch.

The series builds cleanly and I have performed static analysis with
smatch checker and haven't tested on actual hardware.

Thanks for your time.

Regards,
Harshit

Harshit Mogalapalli (4):
  iio: sca3000: cache SPI device ID in probe
  iio: sca3000: switch IRQ handling to devm helpers
  iio: sca3000: manage device registration with devm helper
  iio: sca3000: stop interrupts via devm_add_action_or_reset()

 drivers/iio/accel/sca3000.c | 92 +++++++++++++++++--------------------
 1 file changed, 42 insertions(+), 50 deletions(-)

-- 
2.50.1


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

end of thread, other threads:[~2026-01-31 19:28 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-30 21:43 [PATCH next 0/4] IIO: sca3000: devm resource management Harshit Mogalapalli
2026-01-30 21:43 ` [PATCH next 1/4] iio: sca3000: cache SPI device ID in probe Harshit Mogalapalli
2026-01-31 16:28   ` Jonathan Cameron
2026-01-31 17:32     ` Harshit Mogalapalli
2026-01-30 21:43 ` [PATCH next 2/4] iio: sca3000: switch IRQ handling to devm helpers Harshit Mogalapalli
2026-01-31 16:30   ` Jonathan Cameron
2026-01-31 17:34     ` Harshit Mogalapalli
2026-01-31 19:21   ` David Lechner
2026-01-31 19:28     ` Harshit Mogalapalli
2026-01-30 21:43 ` [PATCH next 3/4] iio: sca3000: manage device registration with devm helper Harshit Mogalapalli
2026-01-31 16:32   ` Jonathan Cameron
2026-01-30 21:43 ` [PATCH next 4/4] iio: sca3000: stop interrupts via devm_add_action_or_reset() Harshit Mogalapalli
2026-01-31 16:39   ` Jonathan Cameron
2026-01-31 17:52     ` Harshit Mogalapalli

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