Re: [PATCH] thermal: Share THERMAL_NO_LIMIT between kernel and DT bindings
From: Krzysztof Kozlowski
Date: Wed Oct 21 2026 - 10:36:34 EST
On 21/10/2026 15:42, Daniel Lezcano wrote:
> THERMAL_NO_LIMIT is defined separately in the thermal core and the DT
> bindings, using different expressions for the same no-limit sentinel.
>
> Define it as 0xffffffff in the DT bindings header and include that
> header from linux/thermal.h. Remove the duplicate kernel definition so
> both interfaces use the same unsigned 32-bit value while preserving
> the existing DT encoding.
>
> Signed-off-by: Daniel Lezcano <daniel.lezcano@xxxxxxxxxxxxxxxx>
> ---
> include/dt-bindings/thermal/thermal.h | 2 +-
> include/linux/thermal.h | 5 ++---
> 2 files changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/include/dt-bindings/thermal/thermal.h b/include/dt-bindings/thermal/thermal.h
> index bc7babb1a67c..018f75febb9f 100644
> --- a/include/dt-bindings/thermal/thermal.h
> +++ b/include/dt-bindings/thermal/thermal.h
> @@ -10,7 +10,7 @@
> #define _DT_BINDINGS_THERMAL_THERMAL_H
>
> /* On cooling devices upper and lower limits */
> -#define THERMAL_NO_LIMIT (~0)
> +#define THERMAL_NO_LIMIT 0xffffffff /* ~0U */
This should be actually separate patch, as we expect usually of bindings.
Best regards,
Krzysztof