drm/vkms: use new debugfs device-centered functions
authorMaíra Canal <mcanal@igalia.com>
Mon, 19 Dec 2022 12:06:20 +0000 (09:06 -0300)
committerMaíra Canal <mairacanal@riseup.net>
Thu, 22 Dec 2022 17:59:50 +0000 (14:59 -0300)
commit03d2673bb7579ecb779092d37410c9299e622cb8
tree74b1b543528e0745127c675c271e15d8536392d8
parentc0dda238e2640eb8897e8ab7cca25b2f1d11ea08
drm/vkms: use new debugfs device-centered functions

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. Moreover, remove the
debugfs_init hook and add the debugfs files directly on vkms_create(),
before drm_dev_register().

Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Melissa Wen <mwen@igalia.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20221219120621.15086-7-mcanal@igalia.com
drivers/gpu/drm/vkms/vkms_drv.c