ACPI: thermal: Determine the number of trip points earlier
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 12 Sep 2023 18:37:59 +0000 (20:37 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 26 Sep 2023 15:56:53 +0000 (17:56 +0200)
commitf04256a8f7de2c13619b636cec1109e596804229
tree1cfdfd75088b8abf280a403c4da89deabc5f23d7
parentb09872a652d386207600fcd001077251c0eae15a
ACPI: thermal: Determine the number of trip points earlier

Compute the number of trip points in acpi_thermal_add() so as to allow the
driver's data structures to be simplified going forward.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/acpi/thermal.c