diff options
author | Thierry Reding <treding@nvidia.com> | 2014-01-13 17:33:20 +0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-01-14 17:35:11 +0400 |
commit | 3d887368701ef78fe17fc998fe5a74ac8f7c6d4c (patch) | |
tree | adaa657a33d717c4d2eba5460963b5d1e3c988e9 /drivers/gpu/drm/drm_crtc_helper.c | |
parent | db5f7a6e78303fd96dc87487d6976145f70ab84a (diff) | |
download | linux-3d887368701ef78fe17fc998fe5a74ac8f7c6d4c.tar.xz |
drm: Move drm_encoder_crtc_ok() to core
Using the new drm_crtc_mask() function, drm_encoder_crtc_ok() can now be
written in a significantly shorter way, so it can be moved to a header
file and be made static inline.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc_helper.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index 940c678cf012..48c90cbceb06 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c @@ -324,19 +324,6 @@ void drm_helper_disable_unused_functions(struct drm_device *dev) } EXPORT_SYMBOL(drm_helper_disable_unused_functions); -/** - * drm_encoder_crtc_ok - can a given crtc drive a given encoder? - * @encoder: encoder to test - * @crtc: crtc to test - * - * Return false if @encoder can't be driven by @crtc, true otherwise. - */ -static bool drm_encoder_crtc_ok(struct drm_encoder *encoder, - struct drm_crtc *crtc) -{ - return !!(encoder->possible_crtcs & drm_crtc_mask(crtc)); -} - /* * Check the CRTC we're going to map each output to vs. its current * CRTC. If they don't match, we have to disable the output and the CRTC |