Re: [PATCH -next 3/3] drm/amdgpu: use clamp() in nvkm_volt_map()

2024-08-30 Thread Lyude Paul
As long as you make sure to fix the patch name from drm/amdgpu to drm/nouveau like Alex mentioned: Reviewed-by: Lyude Paul On Fri, 2024-08-30 at 09:22 +0800, Li Zetao wrote: > When it needs to get a value within a certain interval, using clamp() > makes the code easier to understand than min(max

Re: [PATCH -next 3/3] drm/amdgpu: use clamp() in nvkm_volt_map()

2024-08-30 Thread Alex Deucher
The patch title prefix should say drm/nouveau. Alex On Fri, Aug 30, 2024 at 3:15 AM Li Zetao wrote: > > When it needs to get a value within a certain interval, using clamp() > makes the code easier to understand than min(max()). > > Signed-off-by: Li Zetao > --- > drivers/gpu/drm/nouveau/nvkm/

[PATCH -next 3/3] drm/amdgpu: use clamp() in nvkm_volt_map()

2024-08-30 Thread Li Zetao
When it needs to get a value within a certain interval, using clamp() makes the code easier to understand than min(max()). Signed-off-by: Li Zetao --- drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/