OSDN Git Service

drm/i915: Stop using encoder->type in intel_ddi_enable_transcoder_func()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 19 Oct 2017 13:37:15 +0000 (16:37 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 27 Oct 2017 15:46:09 +0000 (18:46 +0300)
commit742745f1ee4f5a36e5cc5e8b360b519df45efa89
treef10bc62a8d39b7e9656ca863b02ccd97e556a3e4
parentf49b44ab84035b0f9c1808770684432bb6804328
drm/i915: Stop using encoder->type in intel_ddi_enable_transcoder_func()

intel_ddi_enable_transcoder_func() already has the crtc state so we can
use that instead of the untrustworthy encoder->type.

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