aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLuca Ceresoli <luca.ceresoli@bootlin.com>2025-02-26 22:23:53 +0100
committerLouis Chauvet <louis.chauvet@bootlin.com>2025-03-12 10:50:33 +0100
commiteff0347e7c228335e9ff64aaf02c66957803af6a (patch)
treea157192cdbdc5af2f92842456c84129dd344c372 /include
parentdrm/bridge: move bridges_show logic from drm_debugfs.c (diff)
downloadlinux-eff0347e7c228335e9ff64aaf02c66957803af6a.tar.gz
linux-eff0347e7c228335e9ff64aaf02c66957803af6a.zip
drm/debugfs: add top-level 'bridges' file showing all added bridges
The global bridges_list holding all the bridges between drm_bridge_add() and drm_bridge_remove() cannot be inspected via debugfs. Add a file showing it. To avoid code duplication, move the code printing a bridge info to a common function. Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250226-drm-debugfs-show-all-bridges-v8-2-bb511cc49d83@bootlin.com Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_bridge.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h
index bacbc5dbf281..b0d86a685a41 100644
--- a/include/drm/drm_bridge.h
+++ b/include/drm/drm_bridge.h
@@ -1108,6 +1108,7 @@ static inline struct drm_bridge *drmm_of_get_bridge(struct drm_device *drm,
}
#endif
+void drm_bridge_debugfs_params(struct dentry *root);
void drm_bridge_debugfs_encoder_params(struct dentry *root, struct drm_encoder *encoder);
#endif