drivers: nct: tsensor: Update bind function
Joshua Primero [Tue, 23 Oct 2012 01:09:57 +0000 (18:09 -0700)]
Update the bind function in the tsensor and nct driver to
reflect the new Thermal API.

bug 1059470

Change-Id: I527383d426ff1f70fe531a02d600735cbedea7b8
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/159963
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

drivers/hwmon/tegra-tsensor.c
drivers/misc/nct1008.c

index 8dea0a3..063650d 100644 (file)
@@ -1778,11 +1778,15 @@ static int tsensor_bind(struct thermal_zone_device *thz,
        struct tegra_tsensor_data *data = thz->devdata;
 
        if (cdev == data->plat_data.passive.cdev)
-               return thermal_zone_bind_cooling_device(thz, 0, cdev);
+               return thermal_zone_bind_cooling_device(thz, 0, cdev,
+                                                       THERMAL_NO_LIMIT,
+                                                       THERMAL_NO_LIMIT);
 
        for (i = 0; data->plat_data.active[i].cdev; i++)
                if (cdev == data->plat_data.active[i].cdev)
-                       return thermal_zone_bind_cooling_device(thz, i+1, cdev);
+                       return thermal_zone_bind_cooling_device(thz, i+1, cdev,
+                                                       THERMAL_NO_LIMIT,
+                                                       THERMAL_NO_LIMIT);
 
        return 0;
 }
index 0babf02..5031592 100644 (file)
@@ -848,11 +848,15 @@ static int nct1008_ext_bind(struct thermal_zone_device *thz,
        struct nct1008_data *data = thz->devdata;
 
        if (cdev == data->passive_cdev)
-               return thermal_zone_bind_cooling_device(thz, 0, cdev);
+               return thermal_zone_bind_cooling_device(thz, 0, cdev,
+                                                       THERMAL_NO_LIMIT,
+                                                       THERMAL_NO_LIMIT);
 
        for (i = 0; data->active_cdev[i]; i++)
                if (cdev == data->active_cdev[i])
-                       return thermal_zone_bind_cooling_device(thz, i+1, cdev);
+                       return thermal_zone_bind_cooling_device(thz, i+1, cdev,
+                                                       THERMAL_NO_LIMIT,
+                                                       THERMAL_NO_LIMIT);
 
        return 0;
 }