linux/drivers/iio/frequency
Jonathan Cameron d86186a6e0 iio: frequency: ad9523: 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.

Note that in event of an error on the devm_regulator_get() the driver
would have continued without enabling the regulator which is probably
not a good idea.  So here we handle any error as a reason to fail the
probe(). In theory this may expose breakage on a platform that was
previously papered over but it seems low risk.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Michael Hennerich <michael.hennerich@analog.com>
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20221016163409.320197-9-jic23@kernel.org
2022-11-23 19:44:01 +00:00
..
ad9523.c iio: frequency: ad9523: Use devm_regulator_get_enable() 2022-11-23 19:44:01 +00:00
adf4350.c iio: frequency: adf4350: Fix alignment for DMA safety 2022-06-14 11:53:17 +01:00
adf4371.c iio: frequency: adf4371: Benefit from devm_clk_get_enabled() to simplify 2022-08-15 22:30:02 +01:00
admv1013.c iio: frequency: admv1013: Fix alignment for DMA safety 2022-06-14 11:53:18 +01:00
admv1014.c iio: frequency: admv1014: return -EINVAL directly 2022-08-19 18:07:22 +01:00
admv4420.c iio: frequency: admv4420: Fix alignment for DMA safety 2022-06-14 11:53:18 +01:00
adrf6780.c iio: frequency: adrf6780: Benefit from devm_clk_get_enabled() to simplify 2022-08-15 22:30:02 +01:00
Kconfig iio: frequency: admv4420.c: Add support for ADMV4420 2022-02-27 12:16:49 +00:00
Makefile iio: frequency: admv4420.c: Add support for ADMV4420 2022-02-27 12:16:49 +00:00