Re: [PATCH RESEND] thermal: sprd: Use min instead of clamp in sprd_thm_temp_to_rawdata
From: Daniel Lezcano
Date: Sat Mar 14 2026 - 06:49:04 EST
On 3/14/26 02:13, Thorsten Blum wrote:
Clamping 'val' to itself is unnecessary and the expression can be
simplified by using min() instead. Casting SPRD_THM_RAW_DATA_HIGH to u32
is also redundant and can be removed.
Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
Reviewed-by: Lukasz Luba <lukasz.luba@xxxxxxx>
Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
---
You can stop resending, it is already applied :)
https://lore.kernel.org/all/75b4dbdd-6fb4-4dc9-a791-8c8a0e8ef9cf@xxxxxxxxxxxxxxxx/