thermal/of: Remove of_thermal_is_trip_valid()
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 3 Oct 2022 09:25:50 +0000 (11:25 +0200)
committerDaniel Lezcano <daniel.lezcano@kernel.org>
Fri, 6 Jan 2023 13:14:47 +0000 (14:14 +0100)
commitf9061f4e15c5e1f322f7765a7b054bafd4d0bc59
tree18998b46bfac9f001f014fd4003aa41f7f3b66f4
parent2480b02a36cec8a71dba8fc3e4caeaed03669e62
thermal/of: Remove of_thermal_is_trip_valid()

There is no benefit with the of_thermal_is_trip_valid() function as it
does the check the thermal_zone_get_trip() is already doing for the
sake of getting the trip point.

As all the calls have been replaced by thermal_zone_get_trip(), there
is no more users of of_thermal_is_trip_valid().

Remove the function.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20221003092602.1323944-18-daniel.lezcano@linaro.org
drivers/thermal/thermal_core.h
drivers/thermal/thermal_of.c