iwlwifi: mvm: tt: Replace thermal_notify_framework
authorThara Gopinath <thara.gopinath@linaro.org>
Fri, 22 Jan 2021 02:34:04 +0000 (21:34 -0500)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 22 Apr 2021 11:11:35 +0000 (13:11 +0200)
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
drivers/net/wireless/intel/iwlwifi/mvm/tt.c

index 2a7339b12b131776ae7a38666ff4abe8d0ef44b2..398390c59344915d1c7fde197dace291df5ef38d 100644 (file)
@@ -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 */
 }