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

Andrew Jeffery andrew at codeconstruct.com.au
Mon Jun 24 10:28:17 AEST 2024


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 at baylibre.com>

Nice cleanup!

Reviewed-by: Andrew Jeffery <andrew at codeconstruct.com.au>



More information about the Linux-aspeed mailing list