Re: [U-Boot] [PATCH 2/6] dm: adc: uclass: get reference regulator once

2018-07-24 Thread Fabrice Gasnier
On 07/24/2018 01:48 AM, Simon Glass wrote: > Hi Fabrice, > > On 23 July 2018 at 06:35, 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_re

Re: [U-Boot] [PATCH 2/6] dm: adc: uclass: get reference regulator once

2018-07-23 Thread Simon Glass
Hi Fabrice, On 23 July 2018 at 06:35, 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(). > > This also allows vdd_supply/vss_suppl

[U-Boot] [PATCH 2/6] dm: adc: uclass: get reference regulator once

2018-07-23 Thread Fabrice Gasnier
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(). This also allows vdd_supply/vss_supply to be provided directly from uc_pdata, e.g dt-binding variant like stm