drm/debugfs: rework drm_debugfs_create_files implementation v2
authorChristian König <ckoenig.leichtzumerken@gmail.com>
Tue, 29 Aug 2023 11:01:15 +0000 (13:01 +0200)
committerChristian König <christian.koenig@amd.com>
Fri, 1 Sep 2023 06:54:12 +0000 (08:54 +0200)
commit8e455145d8f163aefa6b9cc29478e0a9f82276e6
tree1982ae8ad414d199d9dcee6533e3ef3d7e8afca0
parentec9c7073bb082412a49466059053ace537c1a30d
drm/debugfs: rework drm_debugfs_create_files implementation v2

Use managed memory allocation for this. That allows us to not keep
track of all the files any more.

v2: keep drm_debugfs_cleanup(), but rename to drm_debugfs_unregister(),
    we still need to cleanup the symlink

Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230829110115.3442-6-christian.koenig@amd.com
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
drivers/accel/drm_accel.c
drivers/gpu/drm/drm_debugfs.c
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/drm_internal.h
drivers/gpu/drm/tegra/dc.c
drivers/gpu/drm/tegra/dsi.c
drivers/gpu/drm/tegra/hdmi.c
drivers/gpu/drm/tegra/sor.c
include/drm/drm_debugfs.h
include/drm/drm_file.h