linux/drivers/iio/amplifiers
Matti Vaittinen 563746c26d iio: amplifier: hmc425a: simplify using devm_regulator_get_enable()
Drop open-coded pattern: 'devm_regulator_get(), regulator_enable(),
add_action_or_reset(regulator_disable)' and use the
devm_regulator_get_enable() and drop the pointer to the regulator.
This simplifies code and makes it less tempting to add manual control
for the regulator which is also controlled by devm.

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Acked-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/8b1193fdefb231a6d721e2bded52c48e56039c20.1660934107.git.mazziesaccount@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-11-23 19:44:01 +00:00
..
ad8366.c iio: amplifiers: ad8366: Fix alignment for DMA safety 2022-06-14 11:53:15 +01:00
ada4250.c iio: amplifiers: ada4250: add support for ADA4250 2022-02-27 12:06:25 +00:00
hmc425a.c iio: amplifier: hmc425a: simplify using devm_regulator_get_enable() 2022-11-23 19:44:01 +00:00
Kconfig iio: amplifiers: ada4250: add support for ADA4250 2022-02-27 12:06:25 +00:00
Makefile iio: amplifiers: ada4250: add support for ADA4250 2022-02-27 12:06:25 +00:00