Re: [PATCH 2/2] thermal/drivers/imx: Use the thermal framework for the trip point

From: Daniel Lezcano
Date: Thu Mar 09 2023 - 03:54:17 EST


On 09/03/2023 02:11, Fabio Estevam wrote:
Hi Daniel,

On Wed, Mar 8, 2023 at 6:48 PM Daniel Lezcano <daniel.lezcano@xxxxxxxxxx> wrote:

/* do not allow changing critical threshold */
- if (trip == IMX_TRIP_CRITICAL)
+ if (trip.type == THERMAL_TRIP_CRITICAL)
return -EPERM;
-
+

Unrelated change?

The 'trip' is used as an index and it is checked against IMX_TRIP_CRITICAL which is a index in the array also. We replace that with the real type of trip point regardless its id.

But the extra line is a tab which was inserted, I will fix it.


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