From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nuno Sá Date: Mon, 24 Jun 2024 08:15:12 -0000 Subject: [PATCH 05/10] iio: adc: ltc2309: use devm_regulator_get_enable_read_voltage() In-Reply-To: <20240621-iio-regulator-refactor-round-2-v1-5-49e50cd0b99a@baylibre.com> References: <20240621-iio-regulator-refactor-round-2-v1-0-49e50cd0b99a@baylibre.com> <20240621-iio-regulator-refactor-round-2-v1-5-49e50cd0b99a@baylibre.com> Message-ID: List-Id: To: linux-aspeed@lists.ozlabs.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Fri, 2024-06-21 at 17:11 -0500, David Lechner wrote: > Use devm_regulator_get_enable_read_voltage() to simplify the code. > Error message is changed since there is only one error return now. > LTC2309_INTERNAL_REF_MV macro is added to make the internal reference > voltage value self-documenting. > > Signed-off-by: David Lechner > --- Reviewed-by: Nuno Sa