iio: dac: ad7303: convert probe to full device-managed
authorAlexandru Ardelean <aardelean@deviqon.com>
Mon, 13 Sep 2021 11:51:21 +0000 (14:51 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 17 Oct 2021 10:05:53 +0000 (11:05 +0100)
commit8a16c76e23bb71d69aac121577d1114e1711eaa6
treeaed9891e1e8101c3350ea275e600e05ddb60d20b
parent3b3870646642c2a22d2c4d5602559b3842e0fb99
iio: dac: ad7303: convert probe to full device-managed

For this conversion, the regulators need to have some cleanup hooks
registered with devm_add_action_or_reset() and then the
devm_io_device_register() call can be used.

Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210913115121.300082-1-aardelean@deviqon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad7303.c