Skip to content

Commit bffb7d9

Browse files
akemnadejic23
authored andcommitted
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: 1696f36 ("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>
1 parent 9d61c18 commit bffb7d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/iio/adc/twl6030-gpadc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ static int twl6030_gpadc_probe(struct platform_device *pdev)
952952
}
953953

954954
ret = twl_i2c_write_u8(TWL6030_MODULE_ID0,
955-
VBAT_MEAS | BB_MEAS | BB_MEAS,
955+
VBAT_MEAS | BB_MEAS | VAC_MEAS,
956956
TWL6030_MISC1);
957957
if (ret < 0) {
958958
dev_err(dev, "failed to wire up inputs\n");

0 commit comments

Comments
 (0)