]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: adc: add uclass's mask and conversion helpers
authorFabrice Gasnier <fabrice.gasnier@st.com>
Mon, 12 Nov 2018 13:03:58 +0000 (14:03 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 20 Nov 2018 17:35:25 +0000 (12:35 -0500)
commit63f004e7aae17a6b6048c88ce7e39d64e58c08c1
treed24d457dd1dfedb302da045a978782508556dcc1
parentd73d81fd85e4a030ade42c4b2d13466d45090aa3
dm: adc: add uclass's mask and conversion helpers

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>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/adc/adc-uclass.c
include/adc.h
test/dm/adc.c