Re: [PATCH 6/6] iio: adc: mcp3911: use devm_regulator_get_enable_read_voltage()
From: Marcus Folkesson
Date: Sat Jul 13 2024 - 01:48:24 EST
On Fri, Jul 12, 2024 at 11:03:57AM -0500, David Lechner wrote:
> This makes use of the new devm_regulator_get_enable_read_voltage()
> helper function to reduce boilerplate code in the MCP3911 ADC driver.
>
> The error message is slightly changed since there are fewer error
> return paths.
>
> An extra parameter is added to the config callback to avoid adding
> state that is not used outside of the probe() function.
>
> Signed-off-by: David Lechner <dlechner@xxxxxxxxxxxx>
Reviewed-by: Marcus Folkesson <marcus.folkesson@xxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature