lkml.org 
[lkml]   [2023]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 2/2] thermal/drivers/imx: Use the thermal framework for the trip point
From
On 09/03/2023 02:11, Fabio Estevam wrote:
> Hi Daniel,
>
> On Wed, Mar 8, 2023 at 6:48 PM Daniel Lezcano <daniel.lezcano@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

\
 
 \ /
  Last update: 2023-03-27 00:51    [W:0.069 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site