From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2B7DEECAAA1 for ; Sun, 23 Oct 2022 12:22:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FRnba8wIUpeEJQIMQR3IC9XDdHvv/3+soaDoK8szi/U=; b=d/HKlF1ZjOsQNp Dr93OluFbuEOb9LR4WhESRb4DH5w+jeUeiSQ2NRN33H4cS2LmiGrEPsMOPUcuQ7dawjw6IAMj6nAl AcFbOJYeTMnALI6D4MdfQ7C9B40us7Bx/S1vXvCPgYCGv4HFWCH08svwQDGRKFM9PGx+a6ZFaS0QE tJdRJCoMe8wKkd+5hQu6nTzKjJGR4/S9+Zz9gKCLM/7GQzyeAsLuZ5Vi4hCbllsfCMJQG0cxRS3p2 kxJQ5ZGMaEvGB7k1vLLBxmVjgySYTVLj17wzf7tBmMTtL33KJAC7ptksvfT3ybPMw/20iEOMzix5g vUccx+75GsiHd6ofT7aw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1omZyn-00F7L6-LA; Sun, 23 Oct 2022 12:21:25 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1omZyj-00F7JO-HD for linux-arm-kernel@lists.infradead.org; Sun, 23 Oct 2022 12:21:23 +0000 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 58BA8B80BED; Sun, 23 Oct 2022 12:21:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA6DDC433D6; Sun, 23 Oct 2022 12:21:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666527678; bh=+5uXa3urVH8Y3LmmLBi1OXbL0u8nSudPdsZY/o5A++M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=qECakmbBgIDaoN4se6GIBoWsMCU1cIiEqJW6V+wQdQ/OIbtxNcVWJcnwth5ka1ueo ZMZ/6y/JYIiwdF34L3ozHOTJxWhB/u+0e2M8cGSJgy85zAuzkxVe4pcoaKAk48Gr5o uAhHt/OrvRsNSoMamBlCCo9Z3eXdoI28fgFPNsE/V0RX17wUkdCL/KM+FMvgmfSSjD UBQhs5kzO0aZdlEcJmG1O2/FAB6GJUydFr08+xRCpkG4irAflNnJDJ4AxlKewDQQUF MoYXu8UnhI6j2jftrHTJXHSQeLCP0leoimcQ7Q6gbpbUD09DMiyD8/rOnMJ/cYgC4l V8Bp2MKwSyr0Q== Date: Sun, 23 Oct 2022 13:21:52 +0100 From: Jonathan Cameron To: Claudiu Beznea Subject: Re: [PATCH] iio: adc: at91-sama5d2_adc: get rid of 5 degrees Celsius adjustment Message-ID: <20221023132152.3d1dcedf@jic23-huawei> In-Reply-To: <20221020102705.3639204-1-claudiu.beznea@microchip.com> References: <20221020102705.3639204-1-claudiu.beznea@microchip.com> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221023_052121_744033_82C8F196 X-CRM114-Status: GOOD ( 17.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alexandre.belloni@bootlin.com, lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, eugen.hristev@microchip.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 20 Oct 2022 13:27:05 +0300 Claudiu Beznea wrote: > On SAMA7G5 final chip version there is no need for 5 degrees Celsius > adjustment when computing junction temperature, thus, remove it. > > Fixes: 5ab38b81895c ("iio: adc: at91-sama5d2_adc: add support for temperature sensor") > Signed-off-by: Claudiu Beznea Applied to the fixes-togreg branch of iio.git Thanks, Jonathan > --- > drivers/iio/adc/at91-sama5d2_adc.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/iio/adc/at91-sama5d2_adc.c b/drivers/iio/adc/at91-sama5d2_adc.c > index 33e251552214..870f4cb60923 100644 > --- a/drivers/iio/adc/at91-sama5d2_adc.c > +++ b/drivers/iio/adc/at91-sama5d2_adc.c > @@ -2307,11 +2307,9 @@ static int at91_adc_temp_sensor_init(struct at91_adc_state *st, > clb->p6 = buf[AT91_ADC_TS_CLB_IDX_P6]; > > /* > - * We prepare here the conversion to milli and also add constant > - * factor (5 degrees Celsius) to p1 here to avoid doing it on > - * hotpath. > + * We prepare here the conversion to milli to avoid doing it on hotpath. > */ > - clb->p1 = clb->p1 * 1000 + 5000; > + clb->p1 = clb->p1 * 1000; > > free_buf: > kfree(buf); _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel