drm/i915: Extract intel_encoder_has_connectors()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 17 Feb 2016 19:28:45 +0000 (21:28 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 18 Feb 2016 13:23:24 +0000 (15:23 +0200)
commitdd75619853e4a28776130c78365aab8982abe6e1
tree11e4637fcac3067130cf5dc5a71efbf239ad8a84
parente28661bd1acbdcb6ae845b49a01aa765bfde19d4
drm/i915: Extract intel_encoder_has_connectors()

We have an open coded loop which tries to see if the encoder has any
connectors linked to it. Let's extract that to a helper similar to
intel_crtc_has_encoders().

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1455737325-14777-1-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c