OSDN Git Service

iio: adc: max1363: convert probe to full device-managed
authorAlexandru Ardelean <aardelean@deviqon.com>
Sun, 26 Sep 2021 16:21:10 +0000 (19:21 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 19 Oct 2021 07:27:35 +0000 (08:27 +0100)
commita1ff6d25261315ac622f5d4f2288d385affc6a8f
tree48e13602dce55533dbe633535bdec3b42acfd4e5
parent4415381093fc54548f1a0dd3919abd7f5a72a4f2
iio: adc: max1363: convert probe to full device-managed

For this conversion, the 2 regulators (being enabled) require each a
devm_add_action_or_reset() hook registration.

For the other functions, there are device-managed variants.

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