aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_crtc.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2012-03-13 06:35:46 -0400
committerDave Airlie <airlied@redhat.com>2012-03-15 05:51:42 -0400
commitac235dafb60d3ba4fa4e7341503b16d6e0645ee7 (patch)
treea544dc5b4c4677b9627d82f87845d93be4fcb0c2 /include/drm/drm_crtc.h
parent5f61bb421f01023986902200b6486978c07176f7 (diff)
drm: Fix drm_mode_attachmode_crtc()
Change drm_mode_attachmode_crtc() to take an "all or nothing" approach. If an error is returned, there are no side effects visible. Also change the function to always duplicate the mode passed in. Also change the function to not give up when it finds the first connector without and encoder. A simpler approach would be to just remove the function completely as it's unused currently. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drm_crtc.h')
-rw-r--r--include/drm/drm_crtc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 31715bd4f42a..fe7ebc6b8c93 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -869,7 +869,7 @@ extern int drm_mode_height(struct drm_display_mode *mode);
869/* for us by fb module */ 869/* for us by fb module */
870extern int drm_mode_attachmode_crtc(struct drm_device *dev, 870extern int drm_mode_attachmode_crtc(struct drm_device *dev,
871 struct drm_crtc *crtc, 871 struct drm_crtc *crtc,
872 struct drm_display_mode *mode); 872 const struct drm_display_mode *mode);
873extern int drm_mode_detachmode_crtc(struct drm_device *dev, struct drm_display_mode *mode); 873extern int drm_mode_detachmode_crtc(struct drm_device *dev, struct drm_display_mode *mode);
874 874
875extern struct drm_display_mode *drm_mode_create(struct drm_device *dev); 875extern struct drm_display_mode *drm_mode_create(struct drm_device *dev);