thermal: core: Introduce thermal_governor_trip_crossed()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 23 Apr 2024 19:01:15 +0000 (21:01 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Apr 2024 18:45:06 +0000 (20:45 +0200)
commitf831892e2351dc13b37b4c1fc60472be781a15be
tree784c2af0978ed27be2ae52f64153d4ee1bb4e5d6
parenta6258fde8de34b2bfd7e1d4e55df261426e49071
thermal: core: Introduce thermal_governor_trip_crossed()

Add a wrapper around the .trip_crossed() governor callback invocation
to reduce code duplications slightly and improve the code layout in
__thermal_zone_device_update().

No intentional functional impact.

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