]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: ad7944: use devm_regulator_get_enable_read_voltage
authorDavid Lechner <dlechner@baylibre.com>
Wed, 12 Jun 2024 21:03:09 +0000 (16:03 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 22 Jun 2024 09:52:27 +0000 (10:52 +0100)
commit182b6164115a8c6bbe8c3e4e5b80e0adee18355b
tree35526f913267e0aa43429e4b8dd7dd8fe2688c58
parent8f485a164de33e3b57d213d49a7e745d273f895c
iio: adc: ad7944: use devm_regulator_get_enable_read_voltage

This makes use of the new devm_regulator_get_enable_read_voltage()
function to reduce boilerplate code.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240612-iio-adc-ref-supply-refactor-v2-5-fa622e7354e9@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7944.c