ACPI: thermal: Clean up acpi_thermal_register_thermal_zone()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Aug 2023 18:06:13 +0000 (20:06 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 17 Aug 2023 09:24:18 +0000 (11:24 +0200)
commitbf07b4a3ba3446ba4bbe1ddac235162dbda2ce57
treecaf1d5a27c2fc1758938a8f3b731e13c1ac7d18b
parentcba440fab30106c9ebd30dbbb64d4fb7b997a8e8
ACPI: thermal: Clean up acpi_thermal_register_thermal_zone()

Rename the trips variable in acpi_thermal_register_thermal_zone() to
trip_count so its name better reflects the purpose, rearrange white
space in the loop over active trips for clarity and reduce code
duplication related to calling thermal_zone_device_register() by
using an extra local variable to store the passive delay value.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/thermal.c