diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2022-10-03 11:25:49 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@kernel.org> | 2023-01-06 14:14:47 +0100 |
commit | 2480b02a36cec8a71dba8fc3e4caeaed03669e62 (patch) | |
tree | ae775f2c7cd1edf4225d21a8f5e9e971a805b587 /drivers/thermal/thermal_of.c | |
parent | d5299c1b829f4754e2fa0c62ac6b02545efe4329 (diff) | |
download | lwn-2480b02a36cec8a71dba8fc3e4caeaed03669e62.tar.gz lwn-2480b02a36cec8a71dba8fc3e4caeaed03669e62.zip |
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
Diffstat (limited to 'drivers/thermal/thermal_of.c')
-rw-r--r-- | drivers/thermal/thermal_of.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/thermal/thermal_of.c b/drivers/thermal/thermal_of.c index 2e8b1d635b3b..6cb3b59cab6d 100644 --- a/drivers/thermal/thermal_of.c +++ b/drivers/thermal/thermal_of.c @@ -20,22 +20,6 @@ #include "thermal_core.h" /** - * of_thermal_get_ntrips - function to export number of available trip - * points. - * @tz: pointer to a thermal zone - * - * This function is a globally visible wrapper to get number of trip points - * stored in the local struct __thermal_zone - * - * Return: number of available trip points, -ENODEV when data not available - */ -int of_thermal_get_ntrips(struct thermal_zone_device *tz) -{ - return tz->num_trips; -} -EXPORT_SYMBOL_GPL(of_thermal_get_ntrips); - -/** * of_thermal_is_trip_valid - function to check if trip point is valid * * @tz: pointer to a thermal zone |