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-ventana-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-ventana-sensors.c')
-rw-r--r-- | arch/arm/mach-tegra/board-ventana-sensors.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/arm/mach-tegra/board-ventana-sensors.c b/arch/arm/mach-tegra/board-ventana-sensors.c index c541e8967698..bd3459c85225 100644 --- a/arch/arm/mach-tegra/board-ventana-sensors.c +++ b/arch/arm/mach-tegra/board-ventana-sensors.c @@ -236,18 +236,18 @@ static struct thermal_cooling_device_ops throttle_cooling_ops = { .set_cur_state = throttle_set_cur_state, }; -static struct thermal_cooling_device *throttle_create(void *data) +static struct thermal_cooling_device *ventana_create_cdev(void *data) { - return thermal_cooling_device_register("throttle", + return thermal_cooling_device_register("ventana-nct", NULL, &throttle_cooling_ops); } #else -static struct thermal_cooling_device *throttle_create(void *data) +static struct thermal_cooling_device *ventana_create_cdev(void *data) { return NULL; } -#endif +#endif /* CONFIG_THERMAL */ static struct nct1008_platform_data ventana_nct1008_pdata = { .supported_hwrev = true, @@ -259,8 +259,7 @@ static struct nct1008_platform_data ventana_nct1008_pdata = { /* Thermal Throttling */ .passive = { - .create_cdev = throttle_create, - .cdev_data = NULL, + .create_cdev = ventana_create_cdev, .trip_temp = 90000, .tc1 = 0, .tc2 = 1, |