drm/amd/pm: do not use drm middle layer for debugfs
authorNirmoy Das <nirmoy.das@amd.com>
Sun, 14 Feb 2021 20:56:55 +0000 (21:56 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Feb 2021 21:43:09 +0000 (16:43 -0500)
commit373720f79d56697f0f63cbda50111d6eb6dbad2f
tree173ceee8fa45014edba50b58db8845c47eb75681
parentafd3a359c452c5ee529a6b1d660ebf1176765463
drm/amd/pm: do not use drm middle layer for debugfs

Use debugfs API directly instead of drm middle layer.

v2: * checkpatch.pl: use '0444' instead of S_IRUGO.
    * remove S_IFREG from mode.
    * remove mode variable.

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
drivers/gpu/drm/amd/pm/amdgpu_pm.c
drivers/gpu/drm/amd/pm/inc/amdgpu_pm.h