commit | b341a438d3cc01bc892bdb3d2300d4856a033d94 | [log] [tgz] |
---|---|---|
author | Fabrice Gasnier <fabrice.gasnier@st.com> | Mon Nov 12 14:03:58 2018 +0100 |
committer | Tom Rini <trini@konsulko.com> | Tue Nov 20 12:35:25 2018 -0500 |
tree | d24d457dd1dfedb302da045a978782508556dcc1 | |
parent | a93d4ac4b3c8f6ff37d9c974c9cb9968116f83b2 [diff] |
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>