]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: rcar_gen3_thermal: Store thcode and ptat in priv data
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Thu, 14 Oct 2021 10:38:15 +0000 (12:38 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 15 Oct 2021 07:15:52 +0000 (09:15 +0200)
commit3d7979e381e8a8081205107a90e204e034e4a801
tree11d5255f0281c11e21380ee2a9b77863797881ef
parent8de83621dcbddf751b0a3b3219084c0173720bbc
thermal: rcar_gen3_thermal: Store thcode and ptat in priv data

Prepare for reading the THCODE and PTAT values from hardware fuses by
storing the values used during calculations in the drivers private
data structures.

As the values are now stored directly in the private data structures
there is no need to keep track of the TSC channel id as its only usage
was to lookup the THCODE row, drop it.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tested-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20211014103816.1939782-2-niklas.soderlund+renesas@ragnatech.se
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/rcar_gen3_thermal.c