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