diff options
| author | Li Zetao <lizetao1@huawei.com> | 2024-08-31 04:28:03 +0300 |
|---|---|---|
| committer | Lyude Paul <lyude@redhat.com> | 2024-09-04 22:21:43 +0300 |
| commit | c6430a8eb08d73f79a0f6cd8dbbc7e71037faac0 (patch) | |
| tree | 40502e038a29496e9105ae1f72a39b9822d13541 /include/uapi | |
| parent | bf7835facc09569eb038db7cfe42590d50b73567 (diff) | |
| download | linux-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
