thermal/debugfs: Rename thermal_debug_update_temp() to thermal_debug_update_trip_stats()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 17 Apr 2024 13:11:50 +0000 (15:11 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Apr 2024 18:43:09 +0000 (20:43 +0200)
Rename thermal_debug_update_temp() to thermal_debug_update_trip_stats()
which is a better match for the purpose of the function.

No functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/thermal/thermal_core.c
drivers/thermal/thermal_debugfs.c
drivers/thermal/thermal_debugfs.h

index 914aaee6b39afe3e33ea62b70c430edddefd515e..4debd3c9f3271730e1db1143be3f6e2a2dbfdbc1 100644 (file)
@@ -504,7 +504,7 @@ void __thermal_zone_device_update(struct thermal_zone_device *tz,
        if (governor->manage)
                governor->manage(tz);
 
-       thermal_debug_update_temp(tz);
+       thermal_debug_update_trip_stats(tz);
 
        monitor_thermal_zone(tz);
 }
index 4f7b50e08c857dc13d263372133ee6420e56b8fa..357cd5f2de64d8d0943015934aab31e5d8193097 100644 (file)
@@ -676,7 +676,7 @@ out:
        mutex_unlock(&thermal_dbg->lock);
 }
 
-void thermal_debug_update_temp(struct thermal_zone_device *tz)
+void thermal_debug_update_trip_stats(struct thermal_zone_device *tz)
 {
        struct thermal_debugfs *thermal_dbg = tz->debugfs;
        struct tz_debugfs *tz_dbg;
index 155b9af5fe8708dac1b87a090ca8521c272fa5ff..027c145501dde4963a4db866509f63397c9a18fe 100644 (file)
@@ -11,7 +11,7 @@ void thermal_debug_tz_trip_up(struct thermal_zone_device *tz,
                              const struct thermal_trip *trip);
 void thermal_debug_tz_trip_down(struct thermal_zone_device *tz,
                                const struct thermal_trip *trip);
-void thermal_debug_update_temp(struct thermal_zone_device *tz);
+void thermal_debug_update_trip_stats(struct thermal_zone_device *tz);
 #else
 static inline void thermal_debug_init(void) {}
 static inline void thermal_debug_cdev_add(struct thermal_cooling_device *cdev) {}
@@ -24,5 +24,5 @@ static inline void thermal_debug_tz_trip_up(struct thermal_zone_device *tz,
                                            const struct thermal_trip *trip) {};
 static inline void thermal_debug_tz_trip_down(struct thermal_zone_device *tz,
                                              const struct thermal_trip *trip) {}
-static inline void thermal_debug_update_temp(struct thermal_zone_device *tz) {}
+static inline void thermal_debug_update_trip_stats(struct thermal_zone_device *tz) {}
 #endif /* CONFIG_THERMAL_DEBUGFS */