struct therm_fan_estimator *est = thz->devdata;
if (!strcmp(cdev->type, est->cdev_type)) {
for (i = 0; i < MAX_ACTIVE_STATES; i++)
- thermal_zone_bind_cooling_device(thz, i, cdev, i, i);
+ thermal_zone_bind_cooling_device(thz, i, cdev, i, i,
+ THERMAL_WEIGHT_DEFAULT);
}
return 0;
}
static int therm_fan_est_get_trip_temp(struct thermal_zone_device *thz,
- int trip, long *temp)
+ int trip, int *temp)
{
struct therm_fan_estimator *est = thz->devdata;
}
static int therm_fan_est_set_trip_temp(struct thermal_zone_device *thz,
- int trip, long temp)
+ int trip, int temp)
{
struct therm_fan_estimator *est = thz->devdata;
return 0;
}
-static int therm_fan_est_get_temp(struct thermal_zone_device *thz, long *temp)
+static int therm_fan_est_get_temp(struct thermal_zone_device *thz, int *temp)
{
struct therm_fan_estimator *est = thz->devdata;
}
static int therm_fan_est_set_trip_hyst(struct thermal_zone_device *thz,
- int trip, long hyst_temp)
+ int trip, int hyst_temp)
{
struct therm_fan_estimator *est = thz->devdata;
}
static int therm_fan_est_get_trip_hyst(struct thermal_zone_device *thz,
- int trip, long *temp)
+ int trip, int *temp)
{
struct therm_fan_estimator *est = thz->devdata;