Re: [PATCH 04/11] staging: iio: adc: ad7606: Use devm functions in probe

2018-12-16 Thread Jonathan Cameron
On Thu, 13 Dec 2018 14:46:16 +0200 Stefan Popa wrote: > Switch to devm version of request_irq, iio_triggered_buffer_setup, > iio_device_register. To avoid potential ordering issues in probe, > devm_add_action_or_reset() is used for the regulator_disable(). This > simplifies the code and decreases

[PATCH 04/11] staging: iio: adc: ad7606: Use devm functions in probe

2018-12-13 Thread Stefan Popa
Switch to devm version of request_irq, iio_triggered_buffer_setup, iio_device_register. To avoid potential ordering issues in probe, devm_add_action_or_reset() is used for the regulator_disable(). This simplifies the code and decreases the chance of bugs. Signed-off-by: Stefan Popa --- drivers/s