thermal/drivers/qcom: Remove duplicate set next trip point interrupt code
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 16 Jan 2023 10:19:54 +0000 (11:19 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 16 Jan 2023 12:05:24 +0000 (13:05 +0100)
commitdf715f26cb7b43e3fabb4518aa65931180de8a71
tree3874519f2e48db364c629de7ea9d55c89e484bf4
parent3a908971f7cbee59c2cc07f6fc6fc02a32652a90
thermal/drivers/qcom: Remove duplicate set next trip point interrupt code

The tsens driver reprogram the next trip points in the irq
handler. This function then call thermal_zone_device_update().

However, thermal_zone_device_update() calls thermal_zone_set_trips()
and from there it calls the backend 'set_trips' ops. This one in turn
reprogram the next trip points (low/high).

Consequently, the code setting the next trip points interrupt in the
interrupt handle is not needed and could be removed.

Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Acked-by: Amit Kucheria <amitk@kernel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230116101955.3961427-1-daniel.lezcano@linaro.org
drivers/thermal/qcom/tsens.c