
13 Nov
2018
13 Nov
'18
4:31 a.m.
On 12 November 2018 at 06:03, Fabrice Gasnier fabrice.gasnier@st.com wrote:
Add two functions to ADC uclass's:
- adc_raw_to_uV() to ease ADC raw value conversion to microvolts
- adc_channel_mask() to get channels on consumer side
Signed-off-by: Fabrice Gasnier fabrice.gasnier@st.com
Changes in v2:
- Add calls to the new functions in test/dm/adc.c as suggested by Simon
drivers/adc/adc-uclass.c | 37 +++++++++++++++++++++++++++++++++++++ include/adc.h | 21 +++++++++++++++++++++ test/dm/adc.c | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 94 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org