iio: adc: ad7124: Use devm_ managed calls for all of probe() + drop remove()
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 13 May 2021 12:07:51 +0000 (15:07 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Jun 2021 16:00:16 +0000 (17:00 +0100)
commitc066ca1464f3b690d57c2f521d6cbb3e9546afd4
tree8e042c832db0b3abe0e2dce8a7df83dae5ebeeef
parentbd5dcdeb3fd0784e492efe1132c006663e6c74ba
iio: adc: ad7124: Use devm_ managed calls for all of probe() + drop remove()

As not many steps were not already devm_ managed, use
devm_add_action_or_reset() to handle the rest.

This also uses the new devm_ad_sd_setup_buffer_and_trigger() function.

Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210513120752.90074-12-aardelean@deviqon.com
drivers/iio/adc/ad7124.c