drm/amdgpu: cleanup debugfs for amdgpu rings
authorNirmoy Das <nirmoy.das@amd.com>
Thu, 2 Sep 2021 13:31:07 +0000 (15:31 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Sep 2021 19:35:59 +0000 (15:35 -0400)
commit62d266b2bd4afb216791d6eff8f3d65542fd4d16
tree15257b976c24b725f2a6cce8a1f14db6eadd258d
parent59715cffce19cfd4f7cffcf6d7ecc18478af8c4a
drm/amdgpu: cleanup debugfs for amdgpu rings

Use debugfs_create_file_size API for creating ring debugfs, and as its a
NULL returning API, change the return type for amdgpu_debugfs_ring_init
API as well. Also cleanup surrounding code.

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Shashank Sharma <shashank.sharma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h