u-boot-brain/drivers/adc
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
..
adc-uclass.c dm: adc: uclass: get reference regulator once 2018-08-03 19:53:10 -04:00
exynos-adc.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig adc: add Amlogic Meson SAR ADC driver 2018-05-08 09:07:40 -04:00
Makefile adc: add Amlogic Meson SAR ADC driver 2018-05-08 09:07:40 -04:00
meson-saradc.c adc: meson-saradc: fix regmap_init_mem call 2018-06-19 07:31:46 -04:00
rockchip-saradc.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sandbox.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00