Commit cba440fa authored by Rafael J. Wysocki's avatar Rafael J. Wysocki

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: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent 9a99a996
...@@ -81,11 +81,13 @@ struct thermal_zone_device_ops { ...@@ -81,11 +81,13 @@ struct thermal_zone_device_ops {
* @temperature: temperature value in miliCelsius * @temperature: temperature value in miliCelsius
* @hysteresis: relative hysteresis in miliCelsius * @hysteresis: relative hysteresis in miliCelsius
* @type: trip point type * @type: trip point type
* @priv: pointer to driver data associated with this trip
*/ */
struct thermal_trip { struct thermal_trip {
int temperature; int temperature;
int hysteresis; int hysteresis;
enum thermal_trip_type type; enum thermal_trip_type type;
void *priv;
}; };
struct thermal_cooling_device_ops { struct thermal_cooling_device_ops {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment