From: Tom Rini Date: Sat, 4 Aug 2018 19:39:58 -0400 Subject: [U-Boot] [U-Boot, v2, 2/6] dm: adc: uclass: get reference regulator once In-Reply-To: <1532442693-15002-3-git-send-email-fabrice.gasnier@st.com> References: <1532442693-15002-3-git-send-email-fabrice.gasnier@st.com> Message-ID: <20180804233958.GW32145@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Jul 24, 2018 at 04:31:29PM +0200, Fabrice Gasnier wrote: > device_get_supply_regulator() only needs to be called once. > But each time there's call to adc_vxx_value() for instance, it calls > adc_vxx_platdata_update() -> device_get_supply_regulator(). > > So, move device_get_supply_regulator() to pre_probe() routine. > > This also allows vdd_supply/vss_supply to be provided directly from > uc_pdata, e.g dt-binding variant like stm32-adc provide its own > 'vref-supply'. > > Signed-off-by: Fabrice Gasnier > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: