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>
This commit is contained in:
Daniel Vetter
2012-12-11 13:47:23 +01:00
parent af26ef3b39
commit 2d13b6796e
7 changed files with 25 additions and 9 deletions

View File

@@ -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 */

View File

@@ -768,7 +768,7 @@ static int nv17_tv_set_property(struct drm_encoder *encoder,
.crtc = crtc,
};
crtc->funcs->set_config(&modeset);
drm_mode_set_config_internal(&modeset);
}
}