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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux