OSDN Git Service

iio: dac: ad5064: convert probe to full device-managed
authorAlexandru Ardelean <aardelean@deviqon.com>
Mon, 13 Sep 2021 11:52:37 +0000 (14:52 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 17 Oct 2021 10:05:54 +0000 (11:05 +0100)
commit14a6ee6ec568463d1d1a800928194e769c6c802a
treeaa6a446e93cb97096a5cbbe3ea41e834b6573159
parent96788444302658c6bf8224a811741b81611972fa
iio: dac: ad5064: convert probe to full device-managed

This change converts the probe of the AD5064 driver to use only
device-managed functions.

The regulator_bulk_disable() is passed on a devm_add_action_or_reset() hook
and the devm_iio_device_register() can be used to register the IIO device.

The driver has both I2C and SPI hooks inside, so all these can be removed.

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