[RFC PATCH 1/2] drm/i915/debugfs: use new debugfs device-centered functions
Brahmajit Das
listout at listout.xyz
Fri Aug 8 22:52:25 UTC 2025
Replace the use of drm_debugfs_create_files() with the new
drm_debugfs_add_files() function, which centers the debugfs files
management on the drm_device instead of drm_minor.
Signed-off-by: Brahmajit Das <listout at listout.xyz>
---
drivers/gpu/drm/i915/i915_debugfs.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 967c0501e91e..4c3065d3aca3 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -699,7 +699,7 @@ static const struct file_operations i915_forcewake_fops = {
.release = i915_forcewake_release,
};
-static const struct drm_info_list i915_debugfs_list[] = {
+static const struct drm_debugfs_info i915_debugfs_list[] = {
{"i915_capabilities", i915_capabilities, 0},
{"i915_gem_objects", i915_gem_object_info, 0},
{"i915_frequency_info", i915_frequency_info, 0},
@@ -737,9 +737,8 @@ void i915_debugfs_register(struct drm_i915_private *dev_priv)
i915_debugfs_files[i].fops);
}
- drm_debugfs_create_files(i915_debugfs_list,
- ARRAY_SIZE(i915_debugfs_list),
- minor->debugfs_root, minor);
+ drm_debugfs_add_files(minor->dev, i915_debugfs_list,
+ ARRAY_SIZE(i915_debugfs_list));
i915_gpu_error_debugfs_register(dev_priv);
}
--
2.50.1
More information about the dri-devel
mailing list