Re: [PATCH v2] thermal: fix error condition for reading st,thermal-flags
From: Daniel Lezcano
Date: Fri Mar 27 2026 - 06:29:36 EST
On 3/27/26 10:05, Gopi Krishna Menon wrote:
of_property_read_u32 returns 0 on success. The current check returns
-EINVAL if the property is read successfully.
Fix the check by removing ! from of_property_read_u32
Fixes: b9c7aff481f1 ("drivers/thermal/spear_thermal.c: add Device Tree probing capability")
Reviewed-by: Lukasz Luba <lukasz.luba@xxxxxxx>
Suggested-by: Daniel Baluta <daniel.baluta@xxxxxxx>
Signed-off-by: Gopi Krishna Menon <krishnagopi487@xxxxxxxxx>
---
Changes since v1:
- Add Fixes and Reviewed-by tags
Applied, thanks