Re: [PATCH] thermal: of: Match trip property helper types

From: Daniel Lezcano

Date: Mon Sep 28 2026 - 12:02:05 EST


On 6/12/26 23:50, Rob Herring (Arm) wrote:
The thermal-zone binding defines "temperature" as a signed int32
value and "hysteresis" as an unsigned int32 value. Using helpers with
matching types avoids dt_property_check mismatches and preserves the
signed interpretation needed for trips below zero.

Read "temperature" with the signed helper and keep "hysteresis" on the
unsigned helper using separate typed temporaries before storing them in
the trip structure.

Assisted-by: Codex:gpt-5-5
Signed-off-by: Rob Herring (Arm) <robh@xxxxxxxxxx>
---

Applied, thanks