From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81B662F39 for ; Tue, 7 Feb 2023 13:07:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E25DBC433D2; Tue, 7 Feb 2023 13:07:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1675775279; bh=gKicsm884fVtGi7zTizv8eQmzZhVm3Sm/SkejxI0+Mw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WwVDkdig5hHc3LN+S+cf7eH+vu5IezucMp/UENAgOXs8fWbAxmtV+LVwHDaE4Ni5q TFzheu6FV1Lqdm+ULbSf4Ao413ZQaHy1Zrgo5M0XXf8T+JOhi6TkFjSHfHA2dH/f4E IwNpo4owA+10nloEDpDOgVEBBMGGLXNEnHA43BWM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, kernel test robot , Julia Lawall , Andreas Kemnade , Jonathan Cameron Subject: [PATCH 6.1 196/208] iio:adc:twl6030: Enable measurement of VAC Date: Tue, 7 Feb 2023 13:57:30 +0100 Message-Id: <20230207125643.367140506@linuxfoundation.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230207125634.292109991@linuxfoundation.org> References: <20230207125634.292109991@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Andreas Kemnade commit bffb7d9d1a3dbd09e083b88aefd093b3b10abbfb upstream. VAC needs to be wired up to produce proper measurements, without this change only near zero values are reported. Reported-by: kernel test robot Reported-by: Julia Lawall Fixes: 1696f36482e7 ("iio: twl6030-gpadc: TWL6030, TWL6032 GPADC driver") Signed-off-by: Andreas Kemnade Link: https://lore.kernel.org/r/20221217221305.671117-1-andreas@kemnade.info Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/adc/twl6030-gpadc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/iio/adc/twl6030-gpadc.c +++ b/drivers/iio/adc/twl6030-gpadc.c @@ -952,7 +952,7 @@ static int twl6030_gpadc_probe(struct pl } 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");