[PATCH 2/2] thermal/drivers/imx: Use the thermal framework for the trip point
Daniel Lezcano
daniel.lezcano at linaro.org
Thu Mar 9 00:52:48 PST 2023
On 09/03/2023 02:11, Fabio Estevam wrote:
> Hi Daniel,
>
> On Wed, Mar 8, 2023 at 6:48 PM Daniel Lezcano <daniel.lezcano at linaro.org> 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
More information about the linux-arm-kernel
mailing list