drm/amdgpu: simplify padding calculations (v2)
authorLuben Tuikov <luben.tuikov@amd.com>
Thu, 24 Oct 2019 23:30:13 +0000 (19:30 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 May 2020 06:20:16 +0000 (08:20 +0200)
commit938489ef290214aef47a88c7d0aa27c8157d470e
tree344c1a5ca0e1ca49b337c0898dcae5127e935e91
parenteefe5e0bb7b7be818291d01abf4c72cd292a10de
drm/amdgpu: simplify padding calculations (v2)

[ Upstream commit ce73516d42c9ab011fad498168b892d28e181db4 ]

Simplify padding calculations.

v2: Comment update and spacing.

Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/cik_sdma.c
drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c