iwlwifi: mvm: Use for_each_thermal_trip() for walking trip points
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 7 Feb 2024 19:12:38 +0000 (20:12 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Feb 2024 13:54:55 +0000 (14:54 +0100)
commit85af3310df34b0931daba8732d5b2c64a81c3b8d
tree4665a21737cdff8663a1a38f2e08b7ba60dd2ab5
parent61d88437546f5f40b6411aac17c55d0298c7a19d
iwlwifi: mvm: Use for_each_thermal_trip() for walking trip points

The code walking trip points in iwl_mvm_send_temp_report_ths_cmd()
reads the trip table passed to thermal_zone_device_register_with_trips()
in order to get the current trip temperatures, but this is not
guaranteed to work in the future, because the thermal zone will store
trip points information internally.

For this reason, make iwl_mvm_send_temp_report_ths_cmd() use
for_each_thermal_trip() as appropriate for walking trip points in a
given thermal zone.

No intentional functional impact, but it is requisite for future thermal
core improvements.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Miri Korenblit <Miriam.rachel.korenblit@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/tt.c