summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorLi Zetao <lizetao1@huawei.com>2024-08-31 04:28:03 +0300
committerLyude Paul <lyude@redhat.com>2024-09-04 22:21:43 +0300
commitc6430a8eb08d73f79a0f6cd8dbbc7e71037faac0 (patch)
tree40502e038a29496e9105ae1f72a39b9822d13541 /include/uapi
parentbf7835facc09569eb038db7cfe42590d50b73567 (diff)
downloadlinux-c6430a8eb08d73f79a0f6cd8dbbc7e71037faac0.tar.xz
drm/nouveau/volt: use clamp() in nvkm_volt_map()
When it needs to get a value within a certain interval, using clamp() makes the code easier to understand than min(max()). Reviewed-by: Lyude Paul <lyude@redhat.com> Signed-off-by: Li Zetao <lizetao1@huawei.com> Signed-off-by: Lyude Paul <lyude@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240831012803.3950100-4-lizetao1@huawei.com
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions