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)
commitb8aaf1415a1bc3a61f870366b3f989b3bc3e2824
tree11d5255f0281c11e21380ee2a9b77863797881ef
parentf6c83676c6097d3f21895b360a03804f810e6d54
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