Re: [PATCH 01/10] iio: adc: aspeed_adc: use devm_regulator_get_enable_read_voltage()

From: Andrew Jeffery
Date: Sun Jun 23 2024 - 20:38:23 EST


On Fri, 2024-06-21 at 17:11 -0500, David Lechner wrote:
> This makes use of the devm_regulator_get_enable_read_voltage() helper
> function to simplify the code.
>
> The error return is moved closer to the function call to make it easier
> to follow the logic. And a few blank lines are added for readability.
>
> Signed-off-by: David Lechner <dlechner@xxxxxxxxxxxx>

Nice cleanup!

Reviewed-by: Andrew Jeffery <andrew@xxxxxxxxxxxxxxxxxxxx>