drm: encapsulate crtc->set_config calls

With refcounting we need to adjust framebuffer refcounts at each
callsite - much easier to do if they all call the same little helper
function.

Reviewed-by: Rob Clark <rob@ti.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cette révision appartient à :
Daniel Vetter
2012-12-11 13:47:23 +01:00
Parent af26ef3b39
révision 2d13b6796e
7 fichiers modifiés avec 25 ajouts et 9 suppressions

Voir le fichier

@@ -140,7 +140,7 @@ nv04_display_destroy(struct drm_device *dev)
.crtc = crtc,
};
crtc->funcs->set_config(&modeset);
drm_mode_set_config_internal(&modeset);
}
/* Restore state */