]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Add a func for core specific reg offset
authorSathishkumar S <sathishkumar.sundararaju@amd.com>
Thu, 16 Jan 2025 19:25:04 +0000 (00:55 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:03:00 +0000 (21:03 -0500)
commit580dac7437974481646f10bfd198cfd80f22bf57
treed3b52e7fbfa0adf9c5a91ac0766a7dae6d1bc5e0
parent3a5fa55455db6a11248a25f24570c365f9246144
drm/amdgpu: Add a func for core specific reg offset

Add an inline function to calculate core specific register offsets for
JPEG v4.0.3 and reuse it, makes code more readable and easier to align.

Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Acked-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/jpeg_v4_0_3.c