[PATCH v2 0/7] Convert drivers to the new debugfs device-centered functions

Maíra Canal mcanal at igalia.com
Mon Jan 9 11:55:14 UTC 2023


The commit 1c9cacbea880 ("drm/debugfs: create device-centered debugfs functions")
introduced new device-centered debugfs functions, which center the debugfs files
management on the drm_device instead of drm_minor. Therefore, this patchset
converts 6 drivers to this new debugfs device-centered structure as it was already
performed on the vc4 (f2ede40e46e8), v3d (c0dda238e264), and vkms (03d2673bb757)
drivers.

Best Regards,
- Maíra Canal

---
v1 -> v2: https://lore.kernel.org/dri-devel/20221226155029.244355-1-mcanal@igalia.com/T/

- Drop some of the #ifdef guards and mark the potentially unused functions
  as __maybe_unused (Daniel Vetter).
- Fix pl111 compilation error when CONFIG_DEBUG_FS=n (kernel test robot).

Maíra Canal (7):
  drm/etnaviv: use new debugfs device-centered functions
  drm/pl111: use new debugfs device-centered functions
  drm/arc: use new debugfs device-centered functions
  drm/virtio: use new debugfs device-centered functions
  drm/omap: use new debugfs device-centered functions
  drm/qxl: remove unused debugfs structure
  drm/qxl: use new debugfs device-centered functions

 drivers/gpu/drm/etnaviv/etnaviv_drv.c    | 29 ++++++-------
 drivers/gpu/drm/omapdrm/omap_debugfs.c   | 29 +++++--------
 drivers/gpu/drm/omapdrm/omap_drv.c       |  7 +--
 drivers/gpu/drm/omapdrm/omap_drv.h       |  2 +-
 drivers/gpu/drm/pl111/Makefile           |  4 +-
 drivers/gpu/drm/pl111/pl111_debugfs.c    | 17 +++-----
 drivers/gpu/drm/pl111/pl111_drm.h        |  2 +-
 drivers/gpu/drm/pl111/pl111_drv.c        |  6 +--
 drivers/gpu/drm/qxl/qxl_debugfs.c        | 55 +++++-------------------
 drivers/gpu/drm/qxl/qxl_drv.c            |  5 +--
 drivers/gpu/drm/qxl/qxl_drv.h            | 22 +---------
 drivers/gpu/drm/tiny/arcpgu.c            | 24 +++--------
 drivers/gpu/drm/virtio/virtgpu_debugfs.c | 17 +++-----
 drivers/gpu/drm/virtio/virtgpu_drv.c     |  5 +--
 drivers/gpu/drm/virtio/virtgpu_drv.h     |  2 +-
 15 files changed, 65 insertions(+), 161 deletions(-)

-- 
2.39.0



More information about the dri-devel mailing list