Re: [PATCH v2 2/2] thermal/drivers/imx: Use the thermal framework for the trip point
From: Fabio Estevam
Date: Thu Mar 09 2023 - 05:46:04 EST
On Thu, Mar 9, 2023 at 6:28 AM Daniel Lezcano <daniel.lezcano@xxxxxxxxxx> wrote:
>
> The thermal framework provides an API to get the trip related to a
> trip point id. We want to consolidate the generic trip points code,
> thus preventing the different drivers to deal with the trip points
> after they registered them.
>
> The set_trip_temp ops will be changed regarding the above changes but
> first we need to rework a bit the different implementation in the
> drivers.
>
> The goal is to prevent using the trip id but use a trip point passed
> as parameter which will contain all the needed information.
>
> As we don't have the trip point passed as parameter yet, we get the
> trip point using the generic trip thermal framewrok APIs and use it to
> take exactly the same decisions.
>
> The difference with this change and the previous code is from where we
> get the thermal trip point (which is the same).
>
> No functional change intended.
>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
> ---
> V2:
> - Remove extra tab inserted in the previous version
Reviewed-by: Fabio Estevam <festevam@xxxxxxxxx>