summaryrefslogtreecommitdiffstats
path: root/include/linux/thermal.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-08-07 20:04:47 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-08-17 11:24:18 +0200
commitcba440fab30106c9ebd30dbbb64d4fb7b997a8e8 (patch)
tree224f573679c6c45231918c8497fdef349ea678bf /include/linux/thermal.h
parent9a99a996d1ec53819580eba93d60b38d72befe3d (diff)
downloadlinux-cba440fab30106c9ebd30dbbb64d4fb7b997a8e8.tar.gz
linux-cba440fab30106c9ebd30dbbb64d4fb7b997a8e8.tar.bz2
linux-cba440fab30106c9ebd30dbbb64d4fb7b997a8e8.zip
thermal: core: Add priv pointer to struct thermal_trip
Add a new field called priv to struct thermal_trip to allow thermal drivers to store pointers to their local data associated with trip points. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'include/linux/thermal.h')
-rw-r--r--include/linux/thermal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h
index 4d40bfa14cdd..f1b43d8a7bd3 100644
--- a/include/linux/thermal.h
+++ b/include/linux/thermal.h
@@ -81,11 +81,13 @@ struct thermal_zone_device_ops {
* @temperature: temperature value in miliCelsius
* @hysteresis: relative hysteresis in miliCelsius
* @type: trip point type
+ * @priv: pointer to driver data associated with this trip
*/
struct thermal_trip {
int temperature;
int hysteresis;
enum thermal_trip_type type;
+ void *priv;
};
struct thermal_cooling_device_ops {