# Re: \[PATCH\] thermal: rcar\_gen3\_thermal: Fix coefficient calculations

- From: Geert Uytterhoeven \<geert@linux-m68k.org\>
- Date: 2021-06-07 09:05:46 
- List: linux-pm
- Page: https://ratatoskr.run/linux-pm/2021/06/9311376
- Thread: https://ratatoskr.run/linux-pm/2021/06/9311366/t.md

```text
On Sat, Jun 5, 2021 at 10:53 AM Niklas Söderlund
[ref] wrote:
> The fixed value of 157 used in the calculations are only correct for
> M3-W, on other Gen3 SoC it should be 167. The constant can be derived
> correctly from the static TJ_3 constant and the SoC specific TJ_1 value.
> Update the calculation be correct on all Gen3 SoCs.
>
> Reported-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
```
