linux/drivers/thermal/broadcom
Thorsten Blum 29cbf826d5 thermal/drivers/brcmstb_thermal: Use max to simplify brcmstb_get_temp
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@linux.dev>
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20260402165616.895305-3-thorsten.blum@linux.dev
2026-04-02 19:23:54 +02:00
..
bcm2711_thermal.c thermal: Explicitly include correct DT includes 2023-07-31 20:03:42 +02:00
bcm2835_thermal.c thermal/drivers/broadcom: Use clamp to simplify bcm2835_thermal_temp2adc 2026-01-21 17:04:41 +01:00
brcmstb_thermal.c thermal/drivers/brcmstb_thermal: Use max to simplify brcmstb_get_temp 2026-04-02 19:23:54 +02:00
Kconfig thermal: Add BCM2711 thermal driver 2020-01-27 11:41:08 +01:00
Makefile thermal: Add BCM2711 thermal driver 2020-01-27 11:41:08 +01:00
ns-thermal.c thermal: Switch back to struct platform_driver::remove() 2024-11-13 16:17:57 +01:00
sr-thermal.c thermal/drivers/broadcom/sr-thermal: Removed call to platform_set_drvdata() 2023-08-16 12:17:19 +02:00