[PATCH 05/10] iio: adc: ltc2309: use devm_regulator_get_enable_read_voltage()
Nuno Sá
noname.nuno at gmail.com
Mon Jun 24 18:15:12 AEST 2024
On Fri, 2024-06-21 at 17:11 -0500, David Lechner wrote:
> Use devm_regulator_get_enable_read_voltage() to simplify the code.
> Error message is changed since there is only one error return now.
> LTC2309_INTERNAL_REF_MV macro is added to make the internal reference
> voltage value self-documenting.
>
> Signed-off-by: David Lechner <dlechner at baylibre.com>
> ---
Reviewed-by: Nuno Sa <nuno.sa at analog.com>
More information about the Linux-aspeed
mailing list