aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_crtc_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/drm_crtc_helper.c')
-rw-r--r--drivers/gpu/drm/drm_crtc_helper.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c
index 245fe4fa9c9e..ea92b827e787 100644
--- a/drivers/gpu/drm/drm_crtc_helper.c
+++ b/drivers/gpu/drm/drm_crtc_helper.c
@@ -324,35 +324,6 @@ void drm_helper_disable_unused_functions(struct drm_device *dev)
324} 324}
325EXPORT_SYMBOL(drm_helper_disable_unused_functions); 325EXPORT_SYMBOL(drm_helper_disable_unused_functions);
326 326
327/**
328 * drm_encoder_crtc_ok - can a given crtc drive a given encoder?
329 * @encoder: encoder to test
330 * @crtc: crtc to test
331 *
332 * Return false if @encoder can't be driven by @crtc, true otherwise.
333 */
334static bool drm_encoder_crtc_ok(struct drm_encoder *encoder,
335 struct drm_crtc *crtc)
336{
337 struct drm_device *dev;
338 struct drm_crtc *tmp;
339 int crtc_mask = 1;
340
341 WARN(!crtc, "checking null crtc?\n");
342
343 dev = crtc->dev;
344
345 list_for_each_entry(tmp, &dev->mode_config.crtc_list, head) {
346 if (tmp == crtc)
347 break;
348 crtc_mask <<= 1;
349 }
350
351 if (encoder->possible_crtcs & crtc_mask)
352 return true;
353 return false;
354}
355
356/* 327/*
357 * Check the CRTC we're going to map each output to vs. its current 328 * Check the CRTC we're going to map each output to vs. its current
358 * CRTC. If they don't match, we have to disable the output and the CRTC 329 * CRTC. If they don't match, we have to disable the output and the CRTC