Commit bffb7d9d authored by Andreas Kemnade's avatar Andreas Kemnade Committed by Jonathan Cameron

iio:adc:twl6030: Enable measurement of VAC

VAC needs to be wired up to produce proper measurements,
without this change only near zero values are reported.
Reported-by: default avatarkernel test robot <lkp@intel.com>
Reported-by: default avatarJulia Lawall <julia.lawall@lip6.fr>
Fixes: 1696f364 ("iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver")
Signed-off-by: default avatarAndreas Kemnade <andreas@kemnade.info>
Link: https://lore.kernel.org/r/20221217221305.671117-1-andreas@kemnade.infoSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 9d61c182
...@@ -952,7 +952,7 @@ static int twl6030_gpadc_probe(struct platform_device *pdev) ...@@ -952,7 +952,7 @@ static int twl6030_gpadc_probe(struct platform_device *pdev)
} }
ret = twl_i2c_write_u8(TWL6030_MODULE_ID0, ret = twl_i2c_write_u8(TWL6030_MODULE_ID0,
VBAT_MEAS | BB_MEAS | BB_MEAS, VBAT_MEAS | BB_MEAS | VAC_MEAS,
TWL6030_MISC1); TWL6030_MISC1);
if (ret < 0) { if (ret < 0) {
dev_err(dev, "failed to wire up inputs\n"); dev_err(dev, "failed to wire up inputs\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment