drm/amd/display: Rework registers tracepoint
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Wed, 2 Sep 2020 18:29:38 +0000 (14:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 26 Oct 2020 17:34:08 +0000 (13:34 -0400)
commit21c4144582962e056729077ff0b3965152ad4cfd
tree0fc2d5015ff041119731a4c15e1c105c36a931f4
parent9d83722d06feae80209483351db1e985f60a1c5a
drm/amd/display: Rework registers tracepoint

amdgpu_dc_rreg and amdgpu_dc_wreg are very similar, for this reason,
this commits abstract these two events by using DECLARE_EVENT_CLASS and
create an instance of it for each one of these events.

Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_trace.h