summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_re.py
diff options
context:
space:
mode:
authorXichao Zhao <zhao.xichao@vivo.com>2025-08-08 10:52:09 +0800
committerAlex Deucher <alexander.deucher@amd.com>2025-08-18 17:01:32 -0400
commit27b16364ea126dc74105f151e9f64ac9e06eb268 (patch)
tree376dc72a810a09f68d624e5c1197ed405768d231 /scripts/lib/kdoc/kdoc_re.py
parent5599b214c4afcb4bfe213e67336ce8e8dbb0d5ab (diff)
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>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions