|
@@ -1341,6 +1341,7 @@ static void remove_trip_attrs(struct thermal_zone_device *tz)
|
|
|
* @mask: a bit string indicating the writeablility of trip points
|
|
|
* @devdata: private device data
|
|
|
* @ops: standard thermal zone device callbacks
|
|
|
+ * @tzp: thermal zone platform parameters
|
|
|
* @passive_delay: number of milliseconds to wait between polls when
|
|
|
* performing passive cooling
|
|
|
* @polling_delay: number of milliseconds to wait between polls when checking
|
|
@@ -1353,6 +1354,7 @@ static void remove_trip_attrs(struct thermal_zone_device *tz)
|
|
|
struct thermal_zone_device *thermal_zone_device_register(const char *type,
|
|
|
int trips, int mask, void *devdata,
|
|
|
const struct thermal_zone_device_ops *ops,
|
|
|
+ const struct thermal_zone_params *tzp,
|
|
|
int passive_delay, int polling_delay)
|
|
|
{
|
|
|
struct thermal_zone_device *tz;
|
|
@@ -1386,6 +1388,7 @@ struct thermal_zone_device *thermal_zone_device_register(const char *type,
|
|
|
|
|
|
strcpy(tz->type, type ? : "");
|
|
|
tz->ops = ops;
|
|
|
+ tz->tzp = tzp;
|
|
|
tz->device.class = &thermal_class;
|
|
|
tz->devdata = devdata;
|
|
|
tz->trips = trips;
|