thermal: gov_power_allocator: Use trip pointers instead of trip indices
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 12 Oct 2023 18:31:38 +0000 (20:31 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 20 Oct 2023 17:26:37 +0000 (19:26 +0200)
commit94be1d27aa8d6f0a9e09517445abf468de24fab3
tree1f1d97591ea4a9da1b8917ccaa8cd1a5322c0a4a
parent276f1ede95164b54f55c82d40e9df218109704d6
thermal: gov_power_allocator: Use trip pointers instead of trip indices

Modify the power allocator thermal governor to use trip pointers instead
of trip indices everywhere except for the power_allocator_throttle()
second argument that will be changed subsequently along with the
definition of the .throttle() governor callback.

The general functionality is not expected to be changed.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Tested-by: Lukasz Luba <lukasz.luba@arm.com>
drivers/thermal/gov_power_allocator.c