|
@@ -223,20 +223,12 @@ int phm_register_thermal_interrupt(struct pp_hwmgr *hwmgr, const void *info)
|
|
|
* Initializes the thermal controller subsystem.
|
|
|
*
|
|
|
* @param pHwMgr the address of the powerplay hardware manager.
|
|
|
-* @param pTemperatureRange the address of the structure holding the temperature range.
|
|
|
* @exception PP_Result_Failed if any of the paramters is NULL, otherwise the return value from the dispatcher.
|
|
|
*/
|
|
|
-int phm_start_thermal_controller(struct pp_hwmgr *hwmgr, struct PP_TemperatureRange *temperature_range)
|
|
|
+int phm_start_thermal_controller(struct pp_hwmgr *hwmgr)
|
|
|
{
|
|
|
- struct PP_TemperatureRange range;
|
|
|
-
|
|
|
- if (temperature_range == NULL) {
|
|
|
- range.max = TEMP_RANGE_MAX;
|
|
|
- range.min = TEMP_RANGE_MIN;
|
|
|
- } else {
|
|
|
- range.max = temperature_range->max;
|
|
|
- range.min = temperature_range->min;
|
|
|
- }
|
|
|
+ struct PP_TemperatureRange range = {TEMP_RANGE_MIN, TEMP_RANGE_MAX};
|
|
|
+
|
|
|
if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
|
|
|
PHM_PlatformCaps_ThermalController)
|
|
|
&& hwmgr->hwmgr_func->start_thermal_controller != NULL)
|