Skip to contentSkip to conversation

iio:adc:twl6030: Enable measurement of VAC

PATCH Applied Andreas Kemnade 2 participants 2 messages Dec 17, 2022 – Dec 23, 2022 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Fixes 1696f36482e7 ("iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver")
---
 drivers/iio/adc/twl6030-gpadc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/twl6030-gpadc.c +1 -1
index 40438e5b4970..32873fb5f367 100644
@@ -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");
Signature · 1 line
2.30.2
maintainer Applied
#1 lore raw
Quoted 7 lines · On Sat, 17 Dec 2022 23:13:05 +0100 Andreas Kemnade <[email protected]> wrote:

VAC needs to be wired up to produce proper measurements, without this change only near zero values are reported.

Fixes 1696f36482e7 ("iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver")

Applied to the fixes-togreg branch of iio.git.

Thanks,

Jonathan

Quoted 17 lines
---
 drivers/iio/adc/twl6030-gpadc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/twl6030-gpadc.c +1 -1
index 40438e5b4970..32873fb5f367 100644
@@ -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");