diff options
author | Thomas Wood <thomas.wood@intel.com> | 2014-06-18 16:52:32 (GMT) |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-06-19 06:56:01 (GMT) |
commit | 30f6570798f6c897df4f1f2c676d803728bfec27 (patch) | |
tree | 2ff3e99b8286b75b0cac0a2c07cee9da9c6634bf /include/drm/drm_crtc.h | |
parent | 34ea3d386347cd6de4c2fa2491dd85c9e753e7e4 (diff) | |
download | linux-30f6570798f6c897df4f1f2c676d803728bfec27.tar.xz |
drm/debugfs: add a "force" file per connector
Add a file to debugfs for each connector to enable modification of the
"force" connector attribute. This allows connectors to be enabled or
disabled for testing and debugging purposes.
v2: Add stricter value checking and clean up debugfs_entry if file
creation fails in drm_debugfs_connector_add. (David Herrmann)
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r-- | include/drm/drm_crtc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 5512c99..d4b0a6a 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h @@ -545,6 +545,8 @@ struct drm_connector { int audio_latency[2]; int null_edid_counter; /* needed to workaround some HW bugs where we get all 0s */ unsigned bad_edid_counter; + + struct dentry *debugfs_entry; }; /** |