]> git.dujemihanovic.xyz Git - linux.git/commit
drm/amd: use clamp() in amdgpu_pll_get_fb_ref_div()
authorLi Zetao <lizetao1@huawei.com>
Fri, 30 Aug 2024 01:22:14 +0000 (09:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Sep 2024 21:38:53 +0000 (17:38 -0400)
commit6fbbb660b1d423a777d7567b7475a6a01aa7fd91
tree25499fa818d56af3a64010ec3b9035d76e29773f
parent2c7795e245d993bcba2f716a8c93a5891ef910c9
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: Christian König <christian.koenig@amd.com>
Signed-off-by: Li Zetao <lizetao1@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c