thermal: rcar_thermal: Remove lock in rcar_thermal_get_current_temp()
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tue, 10 Mar 2020 17:00:29 +0000 (18:00 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 20 Mar 2020 11:17:48 +0000 (12:17 +0100)
commit0fa04202078a7dae3a1199bd61951de3d915ede6
treeaa16dcaf41e43e23b38a4be690c3e8e965a2fab4
parent57ed737f1646579bf77070109c18ea78db690d18
thermal: rcar_thermal: Remove lock in rcar_thermal_get_current_temp()

With the ctemp value returned instead of cached in the private data
structure their is no need to take the lock when translating ctemp into
a temperature.

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-4-niklas.soderlund+renesas@ragnatech.se
drivers/thermal/rcar_thermal.c