[PATCH] thermal/drivers/brcmstb_thermal: Use max to simplify brcmstb_get_temp

Florian Fainelli florian.fainelli at broadcom.com
Sun Nov 30 17:32:00 PST 2025



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 at linux.dev>

Reviewed-by: Florian Fainelli <florian.fainelli at broadcom.com>

-- 
Florian




More information about the linux-arm-kernel mailing list