drm/i915: Don't use encoder->type in intel_ddi_set_pipe_settings()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 19 Oct 2017 13:37:12 +0000 (16:37 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 27 Oct 2017 15:43:37 +0000 (18:43 +0300)
commit5448f53ffe62c75e2cf84d407510efadaa1aff8e
tree4aaa17d0566fdb1d8caeb72d8f8493440995a317
parent547da76b5777859f98bb78e6b57f19463f803c04
drm/i915: Don't use encoder->type in intel_ddi_set_pipe_settings()

encoder->type isn't reliable for DP/HDMI so instead extract the correct
type from the crtc state in intel_ddi_set_pipe_settings().

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171019133721.11794-2-ville.syrjala@linux.intel.com
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/i915/intel_ddi.c