diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-01-05 13:13:03 +0100 |
|---|---|---|
| committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2026-01-21 17:04:41 +0100 |
| commit | 68dabf4ebe0ec2f9a51d3fdc17b1ec64500b7ed4 (patch) | |
| tree | de2f154f111c2893ba2e351bd03f86581703c25f /rust/alloc/collections/git@git.tavy.me:linux.git | |
| parent | 8672be1c1aae98ca96e520bb71245228a1b65f8d (diff) | |
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>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
