Skip to content
Snippets Groups Projects
Commit c6430a8e authored by Li Zetao's avatar Li Zetao Committed by Lyude Paul
Browse files

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's avatarLyude Paul <lyude@redhat.com>
Signed-off-by: default avatarLi Zetao <lizetao1@huawei.com>
Signed-off-by: Lyude Paul's avatarLyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240831012803.3950100-4-lizetao1@huawei.com
parent bf7835fa
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment