diff options
| author | Li Zetao <lizetao1@huawei.com> | 2024-08-31 09:28:03 +0800 |
|---|---|---|
| committer | Lyude Paul <lyude@redhat.com> | 2024-09-04 15:21:43 -0400 |
| commit | c6430a8eb08d73f79a0f6cd8dbbc7e71037faac0 (patch) | |
| tree | 40502e038a29496e9105ae1f72a39b9822d13541 /scripts/gdb/linux/symbols.py | |
| parent | bf7835facc09569eb038db7cfe42590d50b73567 (diff) | |
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 'scripts/gdb/linux/symbols.py')
0 files changed, 0 insertions, 0 deletions
