1/* SPDX-License-Identifier: GPL-2.0 */
2
3#ifdef CONFIG_THERMAL_DEBUGFS
4void thermal_debug_init(void);
5void thermal_debug_cdev_add(struct thermal_cooling_device *cdev);
6void thermal_debug_cdev_remove(struct thermal_cooling_device *cdev);
7void thermal_debug_cdev_state_update(const struct thermal_cooling_device *cdev, int state);
8void thermal_debug_tz_add(struct thermal_zone_device *tz);
9void thermal_debug_tz_remove(struct thermal_zone_device *tz);
10void thermal_debug_tz_trip_up(struct thermal_zone_device *tz,
11 const struct thermal_trip *trip);
12void thermal_debug_tz_trip_down(struct thermal_zone_device *tz,
13 const struct thermal_trip *trip);
14void thermal_debug_update_temp(struct thermal_zone_device *tz);
15#else
16static inline void thermal_debug_init(void) {}
17static inline void thermal_debug_cdev_add(struct thermal_cooling_device *cdev) {}
18static inline void thermal_debug_cdev_remove(struct thermal_cooling_device *cdev) {}
19static inline void thermal_debug_cdev_state_update(const struct thermal_cooling_device *cdev,
20 int state) {}
21static inline void thermal_debug_tz_add(struct thermal_zone_device *tz) {}
22static inline void thermal_debug_tz_remove(struct thermal_zone_device *tz) {}
23static inline void thermal_debug_tz_trip_up(struct thermal_zone_device *tz,
24 const struct thermal_trip *trip) {};
25static inline void thermal_debug_tz_trip_down(struct thermal_zone_device *tz,
26 const struct thermal_trip *trip) {}
27static inline void thermal_debug_update_temp(struct thermal_zone_device *tz) {}
28#endif /* CONFIG_THERMAL_DEBUGFS */
29

source code of linux/drivers/thermal/thermal_debugfs.h