[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4e8235b8-9c2d-69e2-a965-b0787d016ef2@linaro.org>
Date: Thu, 9 Mar 2023 09:52:48 +0100
From: Daniel Lezcano <daniel.lezcano@...aro.org>
To: Fabio Estevam <festevam@...il.com>
Cc: rafael@...nel.org, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org, Amit Kucheria <amitk@...nel.org>,
Zhang Rui <rui.zhang@...el.com>,
Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
NXP Linux Team <linux-imx@....com>,
"moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE"
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH 2/2] thermal/drivers/imx: Use the thermal framework for
the trip point
On 09/03/2023 02:11, Fabio Estevam wrote:
> Hi Daniel,
>
> On Wed, Mar 8, 2023 at 6:48 PM Daniel Lezcano <daniel.lezcano@...aro.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
Powered by blists - more mailing lists