]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: ti-tsc2046: use devm_regulator_get_enable_read_voltage()
authorDavid Lechner <dlechner@baylibre.com>
Thu, 25 Jul 2024 19:22:51 +0000 (14:22 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 09:13:44 +0000 (10:13 +0100)
commit02e0a02c5685dfe6a4bf6aac65759039a61bbd85
treeb0c2750929301f2677802c9439312941893b4312
parentf7578fd46789a4dd45e077e86a7b71159f9a7aa6
iio: adc: ti-tsc2046: use devm_regulator_get_enable_read_voltage()

Use devm_regulator_get_enable_read_voltage() to replace
tsc2046_adc_configure_regulator() which does the same thing.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://patch.msgid.link/20240725-iio-regulator-refactor-round-4-v1-1-55e9dc1de325@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-tsc2046.c