thermal/of: Remove of_thermal_get_ntrips()
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 3 Oct 2022 09:25:49 +0000 (11:25 +0200)
committerDaniel Lezcano <daniel.lezcano@kernel.org>
Fri, 6 Jan 2023 13:14:47 +0000 (14:14 +0100)
commit2480b02a36cec8a71dba8fc3e4caeaed03669e62
treeae775f2c7cd1edf4225d21a8f5e9e971a805b587
parentd5299c1b829f4754e2fa0c62ac6b02545efe4329
thermal/of: Remove of_thermal_get_ntrips()

The thermal OF code uses the generic trip points to initialize the
thermal zone. Consequently thermal_zone_get_num_trips() can be used
and the of_thermal_get_ntrips() is no longer needed. Remove it.

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