thermal: rcar_thermal: Always update thermal zone on interrupt
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tue, 10 Mar 2020 17:00:27 +0000 (18:00 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 20 Mar 2020 11:17:48 +0000 (12:17 +0100)
commit7617e771c16611b422c43b3b154dce2b3ee152d5
tree9a7adcf75e7e5ba284d34b9f86a6d9cc1dfae6d2
parent8d3a6d4f43370109b0a0b38472fa046fad29db2d
thermal: rcar_thermal: Always update thermal zone on interrupt

Since commit a1ade5653804b8eb ("thermal: rcar: check every
rcar_thermal_update_temp() return value") the temperature is always read
in rcar_thermal_get_current_temp() so comparing it before and after
enabling interrupts have little effect. Remove the check and always
update the thermal zone when we get an interrupt that the temperature
have changed.

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