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