[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZpIVGIOkjiRSHq_z@gmail.com>
Date: Sat, 13 Jul 2024 07:48:08 +0200
From: Marcus Folkesson <marcus.folkesson@...il.com>
To: David Lechner <dlechner@...libre.com>
Cc: Jonathan Cameron <jic23@...nel.org>,
Marius Cristea <marius.cristea@...rochip.com>,
Kent Gustavsson <kent@...oris.se>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>, linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 6/6] iio: adc: mcp3911: use
devm_regulator_get_enable_read_voltage()
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@...libre.com>
Reviewed-by: Marcus Folkesson <marcus.folkesson@...il.com>
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists