
7 Feb
2022
7 Feb
'22
9:22 p.m.
On Fri, 4 Feb 2022 at 13:16, Peter Cai peter@typeblog.net wrote:
Mirroring commit 97ab802aa36f ("adc: meson-saradc: add support for getting reference voltage value") for meson-saradc, this adds support for getting the "vref-supply" regulator and register it as the ADC's reference voltage regulator, so clients can translate sampled ADC values to voltage.
Signed-off-by: Peter Cai peter@typeblog.net Reviewed-by: John Keeping john@metanate.com Tested-by: John Keeping john@metanate.com Cc: Simon Glass sjg@chromium.org Cc: Philipp Tomsich philipp.tomsich@vrull.eu Cc: Kever Yang kever.yang@rock-chips.com
Changes in v2:
- Reordered local variables in `rockchip_saradc_probe`.
drivers/adc/rockchip-saradc.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org