aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThara Gopinath <thara.gopinath@linaro.org>2021-01-21 21:34:04 -0500
committerDaniel Lezcano <daniel.lezcano@linaro.org>2021-04-22 13:11:35 +0200
commit93effd83b6927c0252bb1e35aa3e116d3e2527bb (patch)
tree7d51a46eab798cf4f8dcfd38884e08b65a443dd6
parentdt-bindings: thermal: brcm,ns-thermal: Convert to the json-schema (diff)
downloadlinux-dev-93effd83b6927c0252bb1e35aa3e116d3e2527bb.tar.xz
linux-dev-93effd83b6927c0252bb1e35aa3e116d3e2527bb.zip
iwlwifi: mvm: tt: Replace thermal_notify_framework
thermal_notify_framework just updates for a single trip point where as thermal_zone_device_update does other bookkeeping like updating the temperature of the thermal zone and setting the next trip point etc. Replace thermal_notify_framework with thermal_zone_device_update as the later is more thorough. Acked-by: Kalle Valo <kvalo@codeaurora.org> Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20210122023406.3500424-2-thara.gopinath@linaro.org
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/tt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/tt.c b/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
index 2a7339b12b13..398390c59344 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/tt.c
@@ -146,8 +146,8 @@ void iwl_mvm_temp_notif(struct iwl_mvm *mvm, struct iwl_rx_cmd_buffer *rxb)
if (mvm->tz_device.tzone) {
struct iwl_mvm_thermal_device *tz_dev = &mvm->tz_device;
- thermal_notify_framework(tz_dev->tzone,
- tz_dev->fw_trips_index[ths_crossed]);
+ thermal_zone_device_update(tz_dev->tzone,
+ THERMAL_TRIP_VIOLATED);
}
#endif /* CONFIG_THERMAL */
}