thermal: gov_power_allocator: Simplify checks for valid power actor
authorLukasz Luba <lukasz.luba@arm.com>
Wed, 20 Dec 2023 23:17:50 +0000 (23:17 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 29 Dec 2023 17:01:00 +0000 (18:01 +0100)
commite3ecd5716b957ff0e558e853d34be8d1e8173f64
tree4c43fc5d0fe841549198609d01d21afcae81ee13
parent912e97c67cc3f333c4c5df8f51498c651792e658
thermal: gov_power_allocator: Simplify checks for valid power actor

There is a need to check if the cooling device in the thermal zone
supports IPA callback and is set for control trip point.
Refactor the code which validates the power actor capabilities and
make it more consistent in all places.

No intentional functional impact.

Signed-off-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/gov_power_allocator.c