[PATCH v2 2/2] thermal/drivers/imx: Use the thermal framework for the trip point
Fabio Estevam
festevam at gmail.com
Thu Mar 9 02:45:14 PST 2023
On Thu, Mar 9, 2023 at 6:28 AM Daniel Lezcano <daniel.lezcano at linaro.org> 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 at linaro.org>
> ---
> V2:
> - Remove extra tab inserted in the previous version
Reviewed-by: Fabio Estevam <festevam at gmail.com>
More information about the linux-arm-kernel
mailing list