Re: [PATCH 3/3] thermal/drivers/u8500: Remove the get_trend function

From: Daniel Lezcano
Date: Thu Jun 30 2022 - 09:27:35 EST



Hi Vincent,

On 30/06/2022 14:32, Vincent Guittot wrote:
On Thu, 30 Jun 2022 at 12:16, Daniel Lezcano <daniel.lezcano@xxxxxxxxxx> wrote:

On 28/06/2022 14:50, Linus Walleij wrote:
On Tue, Jun 28, 2022 at 10:40 AM Daniel Lezcano
<daniel.lezcano@xxxxxxxxxx> wrote:

Adding Linus who is missing in the recipient list.


On 16/06/2022 22:25, Daniel Lezcano wrote:
The get_trend function relies on the interrupt to set the raising or
dropping trend. However the interpolated temperature is already giving
the temperature information to the thermal framework which is able to
deduce the trend.

Remove the trend code.

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

I certainly trust you with this :)
Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

The code was originally written by Hongbo Zhang, but co-developed
and tested by Vincent Guittot I think, so paging
him as well.

Ok, thanks

If Vincent has no concern with this change, I'll queue up the series

I don't have any particular concerns. I'm just curious, are you
planning to remove the get_trend completely from the thermal framework
?

Well, actually the get_trend() ops was added for ACPI and because the ops was there, some drivers provided their own implementation and it appears they are unnecessary. It is this pointless code I want to remove.

Only the get_trend() ops will remain for the ACPI. Hopefully we can remove the ops in the future.


--
<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