]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
drm/i915: Kill dp_encoder_is_mst
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 14 Nov 2016 17:44:06 +0000 (19:44 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 14 Nov 2016 18:27:54 +0000 (20:27 +0200)
dp_encoder_is_mst flag in the crtc state can be replaced by
intel_crtc_has_type(..., INTEL_OUTPUT_DP_MST). Let's do that.

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jim Bride <jim.bride@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1479145447-12907-2-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp_mst.c
drivers/gpu/drm/i915/intel_drv.h

index c2ba36b37fbab870ac6a01c114c991807a7c3cfb..c6dd44aed05e0cfad8386806451295ee062a6a8c 100644 (file)
@@ -5509,7 +5509,7 @@ static void haswell_crtc_enable(struct intel_crtc_state *pipe_config,
        if (intel_crtc->config->has_pch_encoder)
                lpt_pch_enable(crtc);
 
-       if (intel_crtc->config->dp_encoder_is_mst)
+       if (intel_crtc_has_type(intel_crtc->config, INTEL_OUTPUT_DP_MST))
                intel_ddi_set_vc_payload_alloc(crtc, true);
 
        assert_vblank_disabled(crtc);
@@ -5632,7 +5632,7 @@ static void haswell_crtc_disable(struct intel_crtc_state *old_crtc_state,
        if (!transcoder_is_dsi(cpu_transcoder))
                intel_disable_pipe(intel_crtc);
 
-       if (intel_crtc->config->dp_encoder_is_mst)
+       if (intel_crtc_has_type(intel_crtc->config, INTEL_OUTPUT_DP_MST))
                intel_ddi_set_vc_payload_alloc(crtc, false);
 
        if (!transcoder_is_dsi(cpu_transcoder))
index 3ffbd69e4551820b713e4707bbfbcd07ce247fe0..b029d1026a28f7caec2a10c1fe6bf3a6607142c6 100644 (file)
@@ -43,7 +43,6 @@ static bool intel_dp_mst_compute_config(struct intel_encoder *encoder,
        const struct drm_display_mode *adjusted_mode = &pipe_config->base.adjusted_mode;
        int mst_pbn;
 
-       pipe_config->dp_encoder_is_mst = true;
        pipe_config->has_pch_encoder = false;
        bpp = 24;
        /*
index 003afb873b673cda65b09699ea6b0175ab11c32d..75252ecaa61334f7ef2104b92152512a37487b8b 100644 (file)
@@ -652,7 +652,6 @@ struct intel_crtc_state {
 
        bool double_wide;
 
-       bool dp_encoder_is_mst;
        int pbn;
 
        struct intel_crtc_scaler_state scaler_state;