diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-03-27 13:46:13 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-03-27 13:46:13 +0200 |
commit | ce07727aff5bec20f29abe9263a51ed6a355b228 (patch) | |
tree | 6426666f65b35ced021c82458d9463f19bec2f4a /include | |
parent | 6babf38d894bec696761c10fbfccafceae76f4eb (diff) | |
parent | 2b6db9efa50799fa75ce609f24b355f29504bd9a (diff) |
Merge back thermal control material for 6.4-rc1.
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/thermal.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 13c6aaed18df..fef625f799ae 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -365,6 +365,10 @@ thermal_zone_device_register_with_trips(const char *, struct thermal_trip *, int void *, struct thermal_zone_device_ops *, struct thermal_zone_params *, int, int); +void *thermal_zone_device_priv(struct thermal_zone_device *tzd); +const char *thermal_zone_device_type(struct thermal_zone_device *tzd); +int thermal_zone_device_id(struct thermal_zone_device *tzd); + int thermal_zone_bind_cooling_device(struct thermal_zone_device *, int, struct thermal_cooling_device *, unsigned long, unsigned long, @@ -437,6 +441,21 @@ static inline int thermal_zone_get_offset( struct thermal_zone_device *tz) { return -ENODEV; } +static inline void *thermal_zone_device_priv(struct thermal_zone_device *tz) +{ + return NULL; +} + +static inline const char *thermal_zone_device_type(struct thermal_zone_device *tzd) +{ + return NULL; +} + +static inline int thermal_zone_device_id(struct thermal_zone_device *tzd) +{ + return -ENODEV; +} + static inline int thermal_zone_device_enable(struct thermal_zone_device *tz) { return -ENODEV; } |