Skip to contentSkip to conversation

FAILED: patch "[PATCH] iio:adc:twl6030: Enable measurement of VAC" failed to apply to 4.14-stable tree

PATCH [email protected] 1 participant 1 message Feb 7, 2023

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

The patch below does not apply to the 4.14-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.

Possible dependencies:

bffb7d9d1a3d ("iio:adc:twl6030: Enable measurement of VAC") f804bd0dc286 ("iio:adc:twl6030: Enable measurements of VUSB, VBAT and others")

thanks,

greg k-h

------------------ original commit in Linus's tree ------------------

From bffb7d9d1a3dbd09e083b88aefd093b3b10abbfb Mon Sep 17 00:00:00 2001
From: Andreas Kemnade <[email protected]>
Date: Sat, 17 Dec 2022 23:13:05 +0100
Subject: [PATCH] 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.

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");