arm: tegra: soctherm: Add thermal_zone_params in struct soctherm_therm
Jinyoung Park [Thu, 31 Jan 2013 13:10:36 +0000 (22:10 +0900)]
Added thermal_zone_params in struct soctherm_therm in orther to set
governor and binding params to soctherm thermal zone devices.

Bug 1200111

Change-Id: I5c5177be1525dcfe15e3a07e4c8532787be12305
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/196027
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>

arch/arm/mach-tegra/tegra11_soctherm.c
arch/arm/mach-tegra/tegra11_soctherm.h

index aabdc3c..ec7b07b 100644 (file)
@@ -833,7 +833,7 @@ static int __init soctherm_thermal_sys_init(void)
                                        (1 << therm->num_trips) - 1,
                                        (void *)TSENSE_SIZE + i,
                                        &soctherm_ops,
-                                       NULL,
+                                       therm->tzp,
                                        therm->passive_delay,
                                        0);
        }
index ae32290..f67a08a 100644 (file)
@@ -69,6 +69,7 @@ struct soctherm_therm {
        int etemp;
        int num_trips;
        struct thermal_trip_info trips[THERMAL_MAX_TRIPS];
+       struct thermal_zone_params *tzp;
 };
 
 struct soctherm_throttle_dev {