drivers: adc: tla2021: Fix reference voltage

This fixes the problem that `adc_raw_to_millivolts` only returns half of
the actual voltage.

Signed-off-by: Caspar Friedrich <c.s.w.friedrich@gmail.com>
This commit is contained in:
Caspar Friedrich 2024-04-03 19:44:01 +02:00 committed by Carles Cufí
parent 02b24911f7
commit 666a89221b

View file

@ -288,7 +288,7 @@ static int tla2021_init(const struct device *dev)
static const struct adc_driver_api tla2021_driver_api = {
.channel_setup = tla2021_channel_setup,
.read = tla2021_read,
.ref_internal = 2048,
.ref_internal = 4096,
#ifdef CONFIG_ADC_ASYNC
.read_async = tla2021_read_async,
#endif