mbox series

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

Message ID 20230109115520.40088-1-mcanal@igalia.com (mailing list archive)
Headers show
Series Convert drivers to the new debugfs device-centered functions | expand

Message

Maíra Canal Jan. 9, 2023, 11:55 a.m. UTC
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(-)