diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-06-28 09:13:08 -0400 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2018-07-05 09:52:07 -0400 |
commit | 20431c05ae682ff2ad387945738fc129d9751d6e (patch) | |
tree | d037cb47882b96d3b17cad5ede245a3c42921efd /drivers/gpu/drm/i915/intel_dp_mst.c | |
parent | 0d99889109892396a8164bf6dd178e36d3fe3166 (diff) |
drm/i915: Nuke intel_mst_best_encoder()
With the fb-helper no longer relying on the non-atomic .best_encoder()
we can eliminate the hook from the MST encoder.
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180628131315.14156-3-ville.syrjala@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dp_mst.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_dp_mst.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp_mst.c b/drivers/gpu/drm/i915/intel_dp_mst.c index 5890500a3a8b..0f012fbe34eb 100644 --- a/drivers/gpu/drm/i915/intel_dp_mst.c +++ b/drivers/gpu/drm/i915/intel_dp_mst.c | |||
@@ -403,20 +403,10 @@ static struct drm_encoder *intel_mst_atomic_best_encoder(struct drm_connector *c | |||
403 | return &intel_dp->mst_encoders[crtc->pipe]->base.base; | 403 | return &intel_dp->mst_encoders[crtc->pipe]->base.base; |
404 | } | 404 | } |
405 | 405 | ||
406 | static struct drm_encoder *intel_mst_best_encoder(struct drm_connector *connector) | ||
407 | { | ||
408 | struct intel_connector *intel_connector = to_intel_connector(connector); | ||
409 | struct intel_dp *intel_dp = intel_connector->mst_port; | ||
410 | if (!intel_dp) | ||
411 | return NULL; | ||
412 | return &intel_dp->mst_encoders[0]->base.base; | ||
413 | } | ||
414 | |||
415 | static const struct drm_connector_helper_funcs intel_dp_mst_connector_helper_funcs = { | 406 | static const struct drm_connector_helper_funcs intel_dp_mst_connector_helper_funcs = { |
416 | .get_modes = intel_dp_mst_get_modes, | 407 | .get_modes = intel_dp_mst_get_modes, |
417 | .mode_valid = intel_dp_mst_mode_valid, | 408 | .mode_valid = intel_dp_mst_mode_valid, |
418 | .atomic_best_encoder = intel_mst_atomic_best_encoder, | 409 | .atomic_best_encoder = intel_mst_atomic_best_encoder, |
419 | .best_encoder = intel_mst_best_encoder, | ||
420 | .atomic_check = intel_dp_mst_atomic_check, | 410 | .atomic_check = intel_dp_mst_atomic_check, |
421 | }; | 411 | }; |
422 | 412 | ||