Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4886601rwl; Sun, 8 Jan 2023 05:05:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXtBwROsXxosKXovV38DYLtPNloCzMQYd8thGWKbTGj7VIA+fryhlbcaIjUjP+C6LLngT1XE X-Received: by 2002:a17:907:c296:b0:820:4046:1586 with SMTP id tk22-20020a170907c29600b0082040461586mr51489878ejc.12.1673183155856; Sun, 08 Jan 2023 05:05:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673183155; cv=none; d=google.com; s=arc-20160816; b=Wogq97PfktY8+ULA20kue1ldm7s3tbKGjrKnxicV1G2T9sk2n6XeN9+z6dKbVY8uhr TWs+qYWzgu9JTre5NA5mE2wgW0qA0+RAVjIrEih4WZ3J8hcnOmWqyh6NS6UuTuQlUFJ/ uIm+ygh/4gxyKajz2ftVdgRRy7bocxGHEBa1Z50sCRt9v7j3hHp4wVJlOtuep69vcR3N FiAsBsVgpq6oOWQE55/JZp+wYBbAxcfI3h7KmxL1VATj/qXv9T29mw0Yhwztck+hIEem UDXUp76NmJvh4JLmFShGHfeKZhRMI0sdHIVFeZ9hsNVvgUW7hGFCmvKefIyv/LvdMhhz gy9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=LJdCUpryq2u0BJJrBx6oNhAvwx+uvWOShn33bE7SkgI=; b=EabBIVC17Jf/licSRknKSxbV1/WuMXXLNJatoyhMdxSPj65FMjuouMpllhDXW4HfC5 bryOJshYq2y/i+DNmbduJ/Bcwv+bZWIqsdIvW0huzVqD5J3MX3DcTfD5IsRFpPN47tsb WtlA9ZwWPJ7ZPByvCMDLPfdD1Hbq9inJqSQ+zZ+TYru/c8S5ch7NyPHEpdXg7iu4pAEp 2wk9PmlndyRs/QcS10T6bvAOdn7LK+KMMZ6Q7o4e3/SXaEHe8+2amSZrRBbTMg5yKA+S y1V5rEU+ZUcDs5zDypSQmI7V1jEvUX8rg//ZBCgMSfBDIXRiC5yKWgHdX0fNWEM1JSNi ROcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NvemCsLH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x19-20020a1709064bd300b0084d1ed9b67bsi5331542ejv.310.2023.01.08.05.05.43; Sun, 08 Jan 2023 05:05:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NvemCsLH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233137AbjAHMvB (ORCPT + 53 others); Sun, 8 Jan 2023 07:51:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230363AbjAHMvA (ORCPT ); Sun, 8 Jan 2023 07:51:00 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A22B21AB; Sun, 8 Jan 2023 04:50:59 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A947BB80976; Sun, 8 Jan 2023 12:50:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F41E7C433EF; Sun, 8 Jan 2023 12:50:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673182256; bh=rDIT6gOl0JO4Pi6BQxe7HUa29MorRTACERDszgVOHnE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=NvemCsLHeLLV+8PVO2pbhxbb52p3xtb96zE7/xXKTz1izmy3Rw0KxsxjRIFJn/SlS oFXd4nidiwMNH23ZaBiUh6nxpg9P1mI2CYC2aQKuaYnCTnJ+BZocXBRtTUum4LhmK2 lCftg30KLGlQzvHx82O3xsXbGp7KvX4O0CKEXJVvex175baGrwtul/lzWabC67km8f JPQU9cheLe38Cen77Wj5tFSIg38d9JIJPNq7Hm8wLfpEdMTgo+y3n2jo6MhuZWXScP MasUqRGgcCAx5v9Wofq/ZbAEwj/GxGoTLz5Msdtto1NCPWB4BaRqz3EAv9zXRM+E0H 80I/jiXRfWrGA== Date: Sun, 8 Jan 2023 13:04:22 +0000 From: Jonathan Cameron To: Luca Weiss Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 1/2] iio: adc: qcom-spmi-adc5: define ADC5_BAT_ID_100K_PU channel Message-ID: <20230108130422.76493bf8@jic23-huawei> In-Reply-To: <20230106-pm7250b-bat_id-v1-1-82ca8f2db741@fairphone.com> References: <20230106-pm7250b-bat_id-v1-0-82ca8f2db741@fairphone.com> <20230106-pm7250b-bat_id-v1-1-82ca8f2db741@fairphone.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.36; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 06 Jan 2023 16:39:41 +0100 Luca Weiss wrote: > Define the ADC channel used for battery identification purposes so it > can be used in drivers. > > Signed-off-by: Luca Weiss Applied to the togreg branch of iio.git and pushed out as testing for 0-day to take a look at it. If anyone else has comments, then there is still time as I won't push this out as a non-rebasing branch for a few days at least (and I'm aware I picked it up very quickly :) Thanks, Jonathan > --- > drivers/iio/adc/qcom-spmi-adc5.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/iio/adc/qcom-spmi-adc5.c b/drivers/iio/adc/qcom-spmi-adc5.c > index 821fee60a765..8c33da9de257 100644 > --- a/drivers/iio/adc/qcom-spmi-adc5.c > +++ b/drivers/iio/adc/qcom-spmi-adc5.c > @@ -543,6 +543,8 @@ static const struct adc5_channels adc5_chans_pmic[ADC5_MAX_CHANNEL] = { > SCALE_HW_CALIB_DEFAULT) > [ADC5_XO_THERM_100K_PU] = ADC5_CHAN_TEMP("xo_therm", 0, > SCALE_HW_CALIB_XOTHERM) > + [ADC5_BAT_ID_100K_PU] = ADC5_CHAN_TEMP("bat_id", 0, > + SCALE_HW_CALIB_DEFAULT) > [ADC5_AMUX_THM1_100K_PU] = ADC5_CHAN_TEMP("amux_thm1_100k_pu", 0, > SCALE_HW_CALIB_THERM_100K_PULLUP) > [ADC5_AMUX_THM2_100K_PU] = ADC5_CHAN_TEMP("amux_thm2_100k_pu", 0, >