diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-10-16 17:34:01 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-11-23 19:44:01 +0000 |
commit | 72ce527c7bb599ac1d64ec5393f66a673b75de6b (patch) | |
tree | 97b3c2951ab8dbfa62196049cfe4cd226e36e73e /drivers/iio/common | |
parent | eefa008b1677244d73ba47920172be36570c87c1 (diff) |
iio: cdc: ad7150: Use devm_regulator_get_enable()
This driver only turns the power on at probe and off via a custom
devm_add_action_or_reset() callback. The new devm_regulator_get_enable()
replaces this boilerplate code.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20221016163409.320197-7-jic23@kernel.org
Diffstat (limited to 'drivers/iio/common')
0 files changed, 0 insertions, 0 deletions