diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-tt.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-tt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-tt.c b/drivers/net/wireless/iwlwifi/iwl-agn-tt.c index 07b2c6cadf51..0c6c4d969706 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-tt.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-tt.c | |||
@@ -114,7 +114,7 @@ static bool iwl_within_ct_kill_margin(struct iwl_priv *priv) | |||
114 | s32 temp = priv->temperature; /* degrees CELSIUS except specified */ | 114 | s32 temp = priv->temperature; /* degrees CELSIUS except specified */ |
115 | bool within_margin = false; | 115 | bool within_margin = false; |
116 | 116 | ||
117 | if (priv->cfg->temperature_kelvin) | 117 | if (priv->cfg->base_params->temperature_kelvin) |
118 | temp = KELVIN_TO_CELSIUS(priv->temperature); | 118 | temp = KELVIN_TO_CELSIUS(priv->temperature); |
119 | 119 | ||
120 | if (!priv->thermal_throttle.advanced_tt) | 120 | if (!priv->thermal_throttle.advanced_tt) |
@@ -591,7 +591,7 @@ static void iwl_bg_tt_work(struct work_struct *work) | |||
591 | if (test_bit(STATUS_EXIT_PENDING, &priv->status)) | 591 | if (test_bit(STATUS_EXIT_PENDING, &priv->status)) |
592 | return; | 592 | return; |
593 | 593 | ||
594 | if (priv->cfg->temperature_kelvin) | 594 | if (priv->cfg->base_params->temperature_kelvin) |
595 | temp = KELVIN_TO_CELSIUS(priv->temperature); | 595 | temp = KELVIN_TO_CELSIUS(priv->temperature); |
596 | 596 | ||
597 | if (!priv->thermal_throttle.advanced_tt) | 597 | if (!priv->thermal_throttle.advanced_tt) |
@@ -640,7 +640,7 @@ void iwl_tt_initialize(struct iwl_priv *priv) | |||
640 | INIT_WORK(&priv->ct_enter, iwl_bg_ct_enter); | 640 | INIT_WORK(&priv->ct_enter, iwl_bg_ct_enter); |
641 | INIT_WORK(&priv->ct_exit, iwl_bg_ct_exit); | 641 | INIT_WORK(&priv->ct_exit, iwl_bg_ct_exit); |
642 | 642 | ||
643 | if (priv->cfg->adv_thermal_throttle) { | 643 | if (priv->cfg->base_params->adv_thermal_throttle) { |
644 | IWL_DEBUG_POWER(priv, "Advanced Thermal Throttling\n"); | 644 | IWL_DEBUG_POWER(priv, "Advanced Thermal Throttling\n"); |
645 | tt->restriction = kzalloc(sizeof(struct iwl_tt_restriction) * | 645 | tt->restriction = kzalloc(sizeof(struct iwl_tt_restriction) * |
646 | IWL_TI_STATE_MAX, GFP_KERNEL); | 646 | IWL_TI_STATE_MAX, GFP_KERNEL); |