1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-02-08 13:16:33 +01:00
Files
u-boot-megous/drivers
Fabrice Gasnier a4a87f7b74 dm: adc: uclass: get reference regulator once
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 <fabrice.gasnier@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2018-08-03 19:53:10 -04:00
..
2018-07-26 10:59:35 -07:00
2018-08-03 19:53:10 -04:00
2018-07-20 15:55:05 -04:00
2018-06-01 15:56:02 +02:00
2018-07-20 15:55:05 -04:00
2018-07-19 16:31:38 -04:00
2018-07-19 16:31:37 -04:00