Commit 6fbbb660 authored by Li Zetao's avatar Li Zetao Committed by Alex Deucher
Browse files

drm/amd: use clamp() in amdgpu_pll_get_fb_ref_div()



When it needs to get a value within a certain interval, using clamp()
makes the code easier to understand than min(max()).

Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarLi Zetao <lizetao1@huawei.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2c7795e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment