Re: [PATCH] thermal/drivers/brcmstb_thermal: Use max to simplify brcmstb_get_temp
From: Florian Fainelli
Date: Sun Nov 30 2025 - 20:32:05 EST
On 11/30/2025 2:54 PM, Thorsten Blum wrote:
Use max() to simplify brcmstb_get_temp() and improve its readability.
Since avs_tmon_code_to_temp() returns an int, change the data type of
the local variable 't' from long to int. No functional changes.
Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
--
Florian