From: Jonathan Cameron <jic23@kernel.org>
To: Claudiu Beznea <claudiu.beznea@microchip.com>
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
Subject: Re: [PATCH] iio: adc: at91-sama5d2_adc: get rid of 5 degrees Celsius adjustment
Date: Sun, 23 Oct 2022 13:21:52 +0100 [thread overview]
Message-ID: <20221023132152.3d1dcedf@jic23-huawei> (raw)
In-Reply-To: <20221020102705.3639204-1-claudiu.beznea@microchip.com>
On Thu, 20 Oct 2022 13:27:05 +0300
Claudiu Beznea <claudiu.beznea@microchip.com> 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 <claudiu.beznea@microchip.com>
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
prev parent reply other threads:[~2022-10-23 12:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-20 10:27 [PATCH] iio: adc: at91-sama5d2_adc: get rid of 5 degrees Celsius adjustment Claudiu Beznea
2022-10-23 12:21 ` Jonathan Cameron [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221023132152.3d1dcedf@jic23-huawei \
--to=jic23@kernel.org \
--cc=alexandre.belloni@bootlin.com \
--cc=claudiu.beznea@microchip.com \
--cc=eugen.hristev@microchip.com \
--cc=lars@metafoo.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox