]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: rcar_thermal: Do not store ctemp in rcar_thermal_priv
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tue, 10 Mar 2020 17:00:28 +0000 (18:00 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 20 Mar 2020 11:17:48 +0000 (12:17 +0100)
commit6ebe1d4f61af5907d1c038e4e5ce662bb05bd120
tree75be1c3b492bafab77c9c8bee6e65203ddd45bae
parent322854a4532c49ec1729944b745faae2de151294
thermal: rcar_thermal: Do not store ctemp in rcar_thermal_priv

There is no need to cache the ctemp value in the private data structure
as it's always prefetched before it's used. Remove it from the structure
and have rcar_thermal_update_temp return the value instead of storing
it.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200310170029.1648996-3-niklas.soderlund+renesas@ragnatech.se
drivers/thermal/rcar_thermal.c