commit | 63f004e7aae17a6b6048c88ce7e39d64e58c08c1 | [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 | d73d81fd85e4a030ade42c4b2d13466d45090aa3 [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>