summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc
diff options
context:
space:
mode:
authorAndreas Kemnade <andreas@kemnade.info>2022-12-17 23:13:05 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-12-28 17:20:04 +0000
commitbffb7d9d1a3dbd09e083b88aefd093b3b10abbfb (patch)
tree6b4ab7dc9cfbff002c2628cf13062b5bb1f9b95a /drivers/iio/adc
parent9d61c1820598a5ea474576ed55318a6dadee37ed (diff)
downloadlinux-stable-bffb7d9d1a3dbd09e083b88aefd093b3b10abbfb.tar.gz
linux-stable-bffb7d9d1a3dbd09e083b88aefd093b3b10abbfb.tar.bz2
linux-stable-bffb7d9d1a3dbd09e083b88aefd093b3b10abbfb.zip
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: kernel test robot <lkp@intel.com> Reported-by: Julia Lawall <julia.lawall@lip6.fr> Fixes: 1696f36482e7 ("iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver") Signed-off-by: Andreas Kemnade <andreas@kemnade.info> Link: https://lore.kernel.org/r/20221217221305.671117-1-andreas@kemnade.info Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc')
-rw-r--r--drivers/iio/adc/twl6030-gpadc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/twl6030-gpadc.c b/drivers/iio/adc/twl6030-gpadc.c
index 40438e5b4970..32873fb5f367 100644
--- a/drivers/iio/adc/twl6030-gpadc.c
+++ b/drivers/iio/adc/twl6030-gpadc.c
@@ -952,7 +952,7 @@ static int twl6030_gpadc_probe(struct platform_device *pdev)
}
ret = twl_i2c_write_u8(TWL6030_MODULE_ID0,
- VBAT_MEAS | BB_MEAS | BB_MEAS,
+ VBAT_MEAS | BB_MEAS | VAC_MEAS,
TWL6030_MISC1);
if (ret < 0) {
dev_err(dev, "failed to wire up inputs\n");