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-08-03 19:53:10 -04:00
2018-07-26 10:59:35 -07:00
2018-07-23 14:33:21 -04:00
2018-06-18 14:43:13 -04:00
2018-07-23 09:55:20 +02:00
2018-08-03 19:53:10 -04:00
2018-07-09 09:11:00 -06:00
2018-07-11 14:23:55 +02:00
2018-05-07 09:34:12 -04:00
2018-07-26 11:54:00 -07:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-30 11:59:21 +02:00
2018-05-07 09:34:12 -04:00
2018-07-19 10:49:57 +02:00
2018-07-31 07:49:47 +03:00
2018-07-21 01:55:25 +02:00
2018-05-07 09:34:12 -04:00
2018-07-11 14:23:55 +02:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-07-20 15:55:05 -04:00
2018-07-23 10:17:04 +02:00
2018-07-25 08:47:52 +09:00
2018-07-26 14:08:23 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-06-13 09:50:57 +08:00
2018-05-07 09:34:12 -04:00
2018-07-19 16:31:35 -04:00
2018-06-19 06:15:55 +02:00
2018-07-30 07:18:46 -04:00
2018-05-15 08:18:09 +02:00
2018-05-07 09:34:12 -04:00
2018-06-01 15:56:02 +02:00
2018-05-07 09:34:12 -04:00
2018-07-20 15:55:05 -04:00
2018-07-30 16:02:29 -04:00
2018-05-07 09:34:12 -04:00
2018-07-26 14:08:17 -05:00
2018-07-19 16:31:38 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-07-23 14:33:21 -04:00
2018-05-07 09:34:12 -04:00
2018-07-20 19:31:30 -04:00
2018-05-07 09:34:12 -04:00
2018-07-02 09:23:28 +08:00
2018-07-28 11:58:09 -04:00
2018-07-05 11:25:50 +02:00
2018-07-02 15:23:50 +02:00
2018-07-19 10:49:56 +02:00
2018-07-19 16:31:37 -04:00
2018-07-19 16:31:37 -04:00