diff options
author | Thomas Wood <thomas.wood@intel.com> | 2014-06-18 12:52:32 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-06-19 02:56:01 -0400 |
commit | 30f6570798f6c897df4f1f2c676d803728bfec27 (patch) | |
tree | 2ff3e99b8286b75b0cac0a2c07cee9da9c6634bf /include/drm/drm_crtc.h | |
parent | 34ea3d386347cd6de4c2fa2491dd85c9e753e7e4 (diff) |
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 5512c9968d77..d4b0a6a4ad9b 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -545,6 +545,8 @@ struct drm_connector { | |||
545 | int audio_latency[2]; | 545 | int audio_latency[2]; |
546 | int null_edid_counter; /* needed to workaround some HW bugs where we get all 0s */ | 546 | int null_edid_counter; /* needed to workaround some HW bugs where we get all 0s */ |
547 | unsigned bad_edid_counter; | 547 | unsigned bad_edid_counter; |
548 | |||
549 | struct dentry *debugfs_entry; | ||
548 | }; | 550 | }; |
549 | 551 | ||
550 | /** | 552 | /** |