Skip to content

Commit 8dff6e8

Browse files
committed
thermal/debugfs: Rename thermal_debug_update_temp() to thermal_debug_update_trip_stats()
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 <[email protected]> Reviewed-by: Lukasz Luba <[email protected]> Acked-by: Daniel Lezcano <[email protected]>
1 parent e271f99 commit 8dff6e8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

drivers/thermal/thermal_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ void __thermal_zone_device_update(struct thermal_zone_device *tz,
504504
if (governor->manage)
505505
governor->manage(tz);
506506

507-
thermal_debug_update_temp(tz);
507+
thermal_debug_update_trip_stats(tz);
508508

509509
monitor_thermal_zone(tz);
510510
}

drivers/thermal/thermal_debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ void thermal_debug_tz_trip_down(struct thermal_zone_device *tz,
676676
mutex_unlock(&thermal_dbg->lock);
677677
}
678678

679-
void thermal_debug_update_temp(struct thermal_zone_device *tz)
679+
void thermal_debug_update_trip_stats(struct thermal_zone_device *tz)
680680
{
681681
struct thermal_debugfs *thermal_dbg = tz->debugfs;
682682
struct tz_debugfs *tz_dbg;

drivers/thermal/thermal_debugfs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void thermal_debug_tz_trip_up(struct thermal_zone_device *tz,
1111
const struct thermal_trip *trip);
1212
void thermal_debug_tz_trip_down(struct thermal_zone_device *tz,
1313
const struct thermal_trip *trip);
14-
void thermal_debug_update_temp(struct thermal_zone_device *tz);
14+
void thermal_debug_update_trip_stats(struct thermal_zone_device *tz);
1515
#else
1616
static inline void thermal_debug_init(void) {}
1717
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,
2424
const struct thermal_trip *trip) {};
2525
static inline void thermal_debug_tz_trip_down(struct thermal_zone_device *tz,
2626
const struct thermal_trip *trip) {}
27-
static inline void thermal_debug_update_temp(struct thermal_zone_device *tz) {}
27+
static inline void thermal_debug_update_trip_stats(struct thermal_zone_device *tz) {}
2828
#endif /* CONFIG_THERMAL_DEBUGFS */

0 commit comments

Comments
 (0)