drm/amdgpu: Use min_t to replace min
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Sun, 3 Sep 2023 06:52:25 +0000 (12:22 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Sep 2023 18:35:22 +0000 (14:35 -0400)
commiteb3b214c37edd323b496b256bb492592aa51c6f2
tree3a47a5ddb84f8fb1315da6f30e597767c8b03b00
parent806c6b3d6f8302a569d6b358f28e6e800c1f988b
drm/amdgpu: Use min_t to replace min

Use min_t to replace min, min_t is a bit fast because min use
twice typeof.

And using min_t is cleaner here since the min/max macros
do a typecheck while min_t()/max_t() to an explicit type cast.

Fixes the below checkpatch warning:

WARNING: min() should probably be min_t()

Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c