Skip to content

Commit cba440f

Browse files
committed
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>
1 parent 9a99a99 commit cba440f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/linux/thermal.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,13 @@ struct thermal_zone_device_ops {
8181
* @temperature: temperature value in miliCelsius
8282
* @hysteresis: relative hysteresis in miliCelsius
8383
* @type: trip point type
84+
* @priv: pointer to driver data associated with this trip
8485
*/
8586
struct thermal_trip {
8687
int temperature;
8788
int hysteresis;
8889
enum thermal_trip_type type;
90+
void *priv;
8991
};
9092

9193
struct thermal_cooling_device_ops {

0 commit comments

Comments
 (0)