iio: adc: ad7192: convert to device-managed functions
authorAlexandru Ardelean <aardelean@deviqon.com>
Thu, 13 May 2021 12:07:50 +0000 (15:07 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Jun 2021 16:00:16 +0000 (17:00 +0100)
commitbd5dcdeb3fd0784e492efe1132c006663e6c74ba
tree42f4cd38d1255e436e25f6b31dc68dfa9baa9da4
parentc9ec2cb328e3273327efad09f99f3744a778108a
iio: adc: ad7192: convert to device-managed functions

With the devm_ad_sd_setup_buffer_and_trigger() helper, it's a bit easier
now to convert the probe of the AD7192 driver to use device-managed
functions.

The regulators and the mclk requires devm_add_action_or_reset() callbacks
though.

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