linux/drivers/thermal/broadcom
Thorsten Blum 68dabf4ebe thermal/drivers/broadcom: Use clamp to simplify bcm2835_thermal_temp2adc
Use clamp() to simplify bcm2835_thermal_temp2adc() and improve its
readability. Explicitly cast BIT() to int to prevent a signedness error.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Link: https://patch.msgid.link/20260105121308.1761-1-thorsten.blum@linux.dev
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2026-01-21 17:04:41 +01: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: Add support for BCM74110 2025-03-25 20:52:04 +01: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