Re: [PATCH 1/2] thermal/core: Use clamp() helper in the stepwise governor

From: Daniel Lezcano
Date: Wed Jul 06 2022 - 10:44:54 EST


On 06/07/2022 14:26, Rafael J. Wysocki wrote:
On Wed, Jul 6, 2022 at 2:07 PM Daniel Lezcano <daniel.lezcano@xxxxxxxxxx> wrote:

On 29/06/2022 17:10, Daniel Lezcano wrote:
The code is actually clampling the next cooling device state using the
lowest and highest states of the thermal instance.

That code can be replaced by the clamp() macro which does exactly the
same. It results in a simpler routine to read.

Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
---

I'll apply this series if nobody has comments

Sounds good to me.

Please feel free to add ACKs from me to the patches.


Sure, thanks!



--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog