drm/amdgpu: deduplicate JPEG v5.0 interrupt routine
authorAndre Luiz Batista Bueno <andrebueno.mac@gmail.com>
Wed, 8 Jul 2026 16:28:50 +0000 (13:28 -0300)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Jul 2026 13:15:37 +0000 (09:15 -0400)
commitda805bfb3dfeb3fd30b905eb2ad98700994192e6
treebd11e173783bb8164b6e0ae4ee6b4f8b977681c5
parent4a82dba89fee39781e50236d46413e460c01c2a3
drm/amdgpu: deduplicate JPEG v5.0 interrupt routine

Both jpeg_v5_0_1.c and jpeg_v5_0_2.c implement identical
interrupt processing routines. To avoid code duplication,
make the implementation in jpeg_v5_0_1.c non-static and
call it directly from jpeg_v5_0_2.c.

Signed-off-by: Andre Luiz Batista Bueno <andrebueno.mac@gmail.com>
Co-developed-by: Enzo Furegatti Spinella <enzo.spinella@usp.br>
Signed-off-by: Enzo Furegatti Spinella <enzo.spinella@usp.br>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.c
drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_1.h
drivers/gpu/drm/amd/amdgpu/jpeg_v5_0_2.c