mirror-linux/drivers/gpu/drm/amd/display/dc/dml/dcn301
Xichao Zhao 27b16364ea drm/amd/display: replace min/max nesting with clamp()
The clamp() macro explicitly expresses the intent of constraining
a value within bounds.Therefore, replacing min(max(a, b), c) with
clamp(val, lo, hi) can improve code readability.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2025-08-18 17:01:32 -04:00
..
dcn301_fpu.c drm/amd/display: replace min/max nesting with clamp() 2025-08-18 17:01:32 -04:00
dcn301_fpu.h drm/amd/display: Adjust functions prefix for some of the dcn301 fpu functions 2024-04-30 09:52:33 -04:00