]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: ad7292: use devm_regulator_get_enable_read_voltage
authorDavid Lechner <dlechner@baylibre.com>
Wed, 12 Jun 2024 21:03:07 +0000 (16:03 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 22 Jun 2024 09:51:53 +0000 (10:51 +0100)
commitc53ccb4ee1e439bab2414fb32852fae029f901fd
treeeda9ea28ef9744c1036fb5e8c789d76766967ce6
parent634c6b5ab6289be8f0c2934b9174c26d170da6d2
iio: adc: ad7292: 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-3-fa622e7354e9@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7292.c