summaryrefslogtreecommitdiffstats
path: root/drivers/thermal/thermal_core.h
diff options
context:
space:
mode:
authorLukasz Luba <lukasz.luba@arm.com>2020-10-15 12:24:41 +0100
committerDaniel Lezcano <daniel.lezcano@linaro.org>2020-10-27 09:44:32 +0100
commit345a8af7ea63ac75a9000159d6298769d3d50f91 (patch)
treedd1df271c1c1a05a698ba048384ae0109c3b6865 /drivers/thermal/thermal_core.h
parent87d2380260524e55e090e14012c1b07c1f6d4096 (diff)
downloadlinux-345a8af7ea63ac75a9000159d6298769d3d50f91.tar.bz2
thermal: core: Move power_actor_set_power into IPA
Since the power actor section has one function power_actor_set_power() move it into Intelligent Power Allocation (IPA). There is no other user of that helper function. It would also allow to remove the check of cdev_is_power_actor() because the code which calls it in IPA already does the needed check. Make the function static since only IPA use it. Signed-off-by: Lukasz Luba <lukasz.luba@arm.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20201015112441.4056-5-lukasz.luba@arm.com
Diffstat (limited to 'drivers/thermal/thermal_core.h')
-rw-r--r--drivers/thermal/thermal_core.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h
index 416cdb1358e3..8df600fa7b79 100644
--- a/drivers/thermal/thermal_core.h
+++ b/drivers/thermal/thermal_core.h
@@ -65,8 +65,6 @@ static inline bool cdev_is_power_actor(struct thermal_cooling_device *cdev)
cdev->ops->power2state;
}
-int power_actor_set_power(struct thermal_cooling_device *cdev,
- struct thermal_instance *ti, u32 power);
/**
* struct thermal_trip - representation of a point in temperature domain
* @np: pointer to struct device_node that this trip point was created from