diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-03-31 19:32:43 +0200 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-03-31 19:32:43 +0200 |
| commit | d4d8516624e1042d33011cf93b6e9c220a22c9f0 (patch) | |
| tree | 363a530076d20796032f24cef6774e66e573cd37 /include/linux | |
| parent | ae817e618d4b5d221daae34d32a39476e4bdcb36 (diff) | |
| parent | 85b52122e5426e15602c0b979012e50d7271ea1a (diff) | |
Merge back Intel thermal driver changes for 6.4-rc1.
Diffstat (limited to 'include/linux')
| -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; } |
