drm/debugfs: add a "force" file per connector
authorThomas Wood <thomas.wood@intel.com>
Wed, 18 Jun 2014 16:52:32 +0000 (17:52 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 19 Jun 2014 06:56:01 +0000 (08:56 +0200)
commit30f6570798f6c897df4f1f2c676d803728bfec27
tree2ff3e99b8286b75b0cac0a2c07cee9da9c6634bf
parent34ea3d386347cd6de4c2fa2491dd85c9e753e7e4
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>
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_debugfs.c
include/drm/drmP.h
include/drm/drm_crtc.h