iio: adc: cc10001: Add devm_add_action_or_reset() to disable regulator.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 16 Oct 2022 17:09:47 +0000 (18:09 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 23 Nov 2022 19:44:04 +0000 (19:44 +0000)
commitdc0ba516d103532b7f289b20119374fe3797f81b
tree17fa906912381bde8a1c1b565c7a73316b32f4a8
parent26bfb581931a020eaf560612f01009b3e179db0a
iio: adc: cc10001: Add devm_add_action_or_reset() to disable regulator.

As the voltage of this regulator is queried, we cannot use the
devm_regulator_get_enable() call and have to role our own disable.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20221016170950.387751-3-jic23@kernel.org
drivers/iio/adc/cc10001_adc.c