diff options
author | Joshua Primero <jprimero@nvidia.com> | 2012-10-30 18:46:10 -0700 |
---|---|---|
committer | Mrutyunjay Sawant <msawant@nvidia.com> | 2012-12-04 23:23:24 -0800 |
commit | e71a07af6f15790ae7bb2c7ceca953e5492db384 (patch) | |
tree | 2899a600e8c9c833e98b999caf84881cf0e93465 /arch/arm/mach-tegra/board-kai-sensors.c | |
parent | 5e635b6b465a93f7ff37006439a7d29098a6707b (diff) |
ARM: tegra: throttle: Expose name to throttle API
Allow the function caller to name the type of the cooling device.
Change-Id: I26f69d0e7d0de9e58f0ffa65b97cd92b0cb0fd12
Signed-off-by: Joshua Primero <jprimero@nvidia.com>
Reviewed-on: http://git-master/r/160075
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/board-kai-sensors.c')
-rw-r--r-- | arch/arm/mach-tegra/board-kai-sensors.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/board-kai-sensors.c b/arch/arm/mach-tegra/board-kai-sensors.c index 1c564d242128..107dc2befa0b 100644 --- a/arch/arm/mach-tegra/board-kai-sensors.c +++ b/arch/arm/mach-tegra/board-kai-sensors.c @@ -56,6 +56,11 @@ static struct balanced_throttle tj_throttle = { }, }; +static struct thermal_cooling_device *kai_create_cdev(void *data) +{ + return balanced_throttle_register(&tj_throttle, "kai-nct"); +} + static struct nct1008_platform_data kai_nct1008_pdata = { .supported_hwrev = true, .ext_range = true, @@ -67,9 +72,7 @@ static struct nct1008_platform_data kai_nct1008_pdata = { /* Thermal Throttling */ .passive = { - .create_cdev = (struct thermal_cooling_device *(*)(void *)) - balanced_throttle_register, - .cdev_data = &tj_throttle, + .create_cdev = kai_create_cdev, .trip_temp = 85000, .tc1 = 0, .tc2 = 1, |