Re: [PATCH 6/6] iio: adc: mcp3911: use devm_regulator_get_enable_read_voltage()

Marcus Folkesson
2024-07-13T05:48:13Z

[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

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

Reviewed-by: Marcus Folkesson <marcus.folkesson@gmail.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]