diff options
author | Joshua Primero <jprimero@nvidia.com> | 2012-08-23 16:29:11 -0700 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-09-13 01:49:58 -0700 |
commit | 71a5f0242738cb4e7f3643960b3c2b43bba22e6a (patch) | |
tree | a29e63033f6fb1a82d4d5b9dca04c4598c29f54c /arch/arm/mach-tegra/board-kai-sensors.c | |
parent | f2d01ca60d3fc7e1f1d12ac03d1777c8c6006190 (diff) |
ARM: tegra: thermal: Refactored thermals
1) Removed skin thermals from tegra_thermal layer
2) Removed throttle initialization from tegra_thermal layer
3) Simplified thermal device interface
4) Create a therm estimator device as a platform device
Change-Id: Ic8ffd111817f03f7aadc89d6185eb749b274b830
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/130282
Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-kai-sensors.c')
-rw-r--r-- | arch/arm/mach-tegra/board-kai-sensors.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/arch/arm/mach-tegra/board-kai-sensors.c b/arch/arm/mach-tegra/board-kai-sensors.c index 8fae12166670..2a062ca76d70 100644 --- a/arch/arm/mach-tegra/board-kai-sensors.c +++ b/arch/arm/mach-tegra/board-kai-sensors.c @@ -47,12 +47,6 @@ static int nct_get_temp(void *_data, long *temp) return nct1008_thermal_get_temp(data, temp); } -static int nct_get_temp_low(void *_data, long *temp) -{ - struct nct1008_data *data = _data; - return nct1008_thermal_get_temp_low(data, temp); -} - static int nct_set_limits(void *_data, long lo_limit_milli, long hi_limit_milli) @@ -71,12 +65,6 @@ static int nct_set_alert(void *_data, return nct1008_thermal_set_alert(data, alert_func, alert_data); } -static int nct_set_shutdown_temp(void *_data, long shutdown_temp) -{ - struct nct1008_data *data = _data; - return nct1008_thermal_set_shutdown_temp(data, shutdown_temp); -} - static void nct1008_probe_callback(struct nct1008_data *data) { struct tegra_thermal_device *thermal_device; @@ -91,12 +79,9 @@ static void nct1008_probe_callback(struct nct1008_data *data) thermal_device->name = "nct72"; thermal_device->data = data; thermal_device->id = THERMAL_DEVICE_ID_NCT_EXT; - thermal_device->offset = TDIODE_OFFSET; thermal_device->get_temp = nct_get_temp; - thermal_device->get_temp_low = nct_get_temp_low; thermal_device->set_limits = nct_set_limits; thermal_device->set_alert = nct_set_alert; - thermal_device->set_shutdown_temp = nct_set_shutdown_temp; tegra_thermal_device_register(thermal_device); } |