Linux Audio

Check our new training course

Loading...
Note: File does not exist in v3.15.
 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, int state);
 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_resume(struct thermal_zone_device *tz);
11void thermal_debug_tz_trip_up(struct thermal_zone_device *tz,
12			      const struct thermal_trip *trip);
13void thermal_debug_tz_trip_down(struct thermal_zone_device *tz,
14				const struct thermal_trip *trip);
15void thermal_debug_update_trip_stats(struct thermal_zone_device *tz);
16#else
17static inline void thermal_debug_init(void) {}
18static inline void thermal_debug_cdev_add(struct thermal_cooling_device *cdev, int state) {}
19static inline void thermal_debug_cdev_remove(struct thermal_cooling_device *cdev) {}
20static inline void thermal_debug_cdev_state_update(const struct thermal_cooling_device *cdev,
21						   int state) {}
22static inline void thermal_debug_tz_add(struct thermal_zone_device *tz) {}
23static inline void thermal_debug_tz_remove(struct thermal_zone_device *tz) {}
24static inline void thermal_debug_tz_resume(struct thermal_zone_device *tz) {}
25static inline void thermal_debug_tz_trip_up(struct thermal_zone_device *tz,
26					    const struct thermal_trip *trip) {};
27static inline void thermal_debug_tz_trip_down(struct thermal_zone_device *tz,
28					      const struct thermal_trip *trip) {}
29static inline void thermal_debug_update_trip_stats(struct thermal_zone_device *tz) {}
30#endif /* CONFIG_THERMAL_DEBUGFS */