drm/i915: Replace some open coded intel_crtc_has_dp_encoder()s
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 22 Jun 2016 18:57:05 +0000 (21:57 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 7 Jul 2016 10:10:12 +0000 (13:10 +0300)
commit2210ce7f537412160e93a5cf9796581858287fb1
tree77e5d02b1916ccbac7b5567f30d31b895871070e
parent37a5650b5bd645d74f082f2cffd22e4db7f4b238
drm/i915: Replace some open coded intel_crtc_has_dp_encoder()s

A bunch of places still look for DP encoders manually. Just call
intel_crtc_has_dp_encoder(). Note that many of these places don't
look for EDP or DP_MST, but it's still fine to replace them because
* for audio we don't enable audio on eDP anyway
* the code that lack DP MST check is only for plaforms that
  don't support MST anyway

v2: Rebase

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1466621833-5054-8-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_audio.c
drivers/gpu/drm/i915/intel_display.c