Re: [PATCH v4 3/4] iio: adc: ti-ads7950: switch to using devm_regulator_get_enable_read_voltage()
From: Bartosz Golaszewski
Date: Mon Mar 30 2026 - 05:23:40 EST
On Mon, 30 Mar 2026 00:47:08 +0200, Dmitry Torokhov
<dmitry.torokhov@xxxxxxxxx> said:
> The regulator is enabled for the entire time the driver is bound to the
> device, and we only need to access it to fetch voltage, which can be
> done at probe time.
>
> Switch to using devm_regulator_get_enable_read_voltage() which
These multi-function helpers are getting out of control. :)
> simplifies probing and unbinding code.
>
> Suggested-by: David Lechner <dlechner@xxxxxxxxxxxx>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
> ---
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>