[U-Boot] [PATCH v2 1/4] dm: adc: add uclass's mask and conversion helpers

Simon Glass sjg at chromium.org
Tue Nov 13 03:31:38 UTC 2018


On 12 November 2018 at 06:03, Fabrice Gasnier <fabrice.gasnier at 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 at 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 at chromium.org>


More information about the U-Boot mailing list