Home
last modified time | relevance | path

Searched hist:cffb8d74bd4e9dd0653c7093c4a5164a72c52b1f (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/hwmon/
H A Dadc128d818.cdiff cffb8d74bd4e9dd0653c7093c4a5164a72c52b1f Tue Apr 30 01:40:10 CEST 2024 David Lechner <dlechner@baylibre.com> hwmon: (adc128d818) Use devm_regulator_get_enable_read_voltage()

We can reduce boilerplate code and eliminate the driver remove()
function by using devm_regulator_get_enable_read_voltage().

A new external_vref flag is added since we no longer have the handle
to the regulator to check if it is present.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: David Lechner <dlechner@baylibre.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20240429-regulator-get-enable-get-votlage-v2-2-b1f11ab766c1@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>