aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/i915/intel_crt.c2
-rw-r--r--drivers/gpu/drm/i915/intel_display.c24
-rw-r--r--drivers/gpu/drm/i915/intel_dp.c2
-rw-r--r--drivers/gpu/drm/i915/intel_drv.h1
-rw-r--r--drivers/gpu/drm/i915/intel_dvo.c2
-rw-r--r--drivers/gpu/drm/i915/intel_hdmi.c4
-rw-r--r--drivers/gpu/drm/i915/intel_lvds.c2
-rw-r--r--drivers/gpu/drm/i915/intel_sdvo.c2
-rw-r--r--drivers/gpu/drm/i915/intel_tv.c2
9 files changed, 0 insertions, 41 deletions
diff --git a/drivers/gpu/drm/i915/intel_crt.c b/drivers/gpu/drm/i915/intel_crt.c
index 76646c715a42..2e2581098d32 100644
--- a/drivers/gpu/drm/i915/intel_crt.c
+++ b/drivers/gpu/drm/i915/intel_crt.c
@@ -617,8 +617,6 @@ static void intel_crt_reset(struct drm_connector *connector)
617 617
618static const struct drm_encoder_helper_funcs crt_encoder_funcs = { 618static const struct drm_encoder_helper_funcs crt_encoder_funcs = {
619 .mode_fixup = intel_crt_mode_fixup, 619 .mode_fixup = intel_crt_mode_fixup,
620 .prepare = intel_encoder_noop,
621 .commit = intel_encoder_noop,
622 .mode_set = intel_crt_mode_set, 620 .mode_set = intel_crt_mode_set,
623 .disable = intel_encoder_disable, 621 .disable = intel_encoder_disable,
624}; 622};
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 343f99104c39..d37a851d0b2d 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -3527,10 +3527,6 @@ static void intel_crtc_disable(struct drm_crtc *crtc)
3527 } 3527 }
3528} 3528}
3529 3529
3530void intel_encoder_noop(struct drm_encoder *encoder)
3531{
3532}
3533
3534void intel_encoder_disable(struct drm_encoder *encoder) 3530void intel_encoder_disable(struct drm_encoder *encoder)
3535{ 3531{
3536 struct intel_encoder *intel_encoder = to_intel_encoder(encoder); 3532 struct intel_encoder *intel_encoder = to_intel_encoder(encoder);
@@ -6701,16 +6697,6 @@ bool intel_set_mode(struct drm_crtc *crtc,
6701 } 6697 }
6702 DRM_DEBUG_KMS("[CRTC:%d]\n", crtc->base.id); 6698 DRM_DEBUG_KMS("[CRTC:%d]\n", crtc->base.id);
6703 6699
6704 /* Prepare the encoders and CRTCs before setting the mode. */
6705 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) {
6706
6707 if (encoder->crtc != crtc)
6708 continue;
6709 encoder_funcs = encoder->helper_private;
6710 /* Disable the encoders as the first thing we do. */
6711 encoder_funcs->prepare(encoder);
6712 }
6713
6714 intel_crtc_prepare_encoders(dev); 6700 intel_crtc_prepare_encoders(dev);
6715 6701
6716 crtc_funcs->prepare(crtc); 6702 crtc_funcs->prepare(crtc);
@@ -6737,16 +6723,6 @@ bool intel_set_mode(struct drm_crtc *crtc,
6737 /* Now enable the clocks, plane, pipe, and connectors that we set up. */ 6723 /* Now enable the clocks, plane, pipe, and connectors that we set up. */
6738 crtc_funcs->commit(crtc); 6724 crtc_funcs->commit(crtc);
6739 6725
6740 list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) {
6741
6742 if (encoder->crtc != crtc)
6743 continue;
6744
6745 encoder_funcs = encoder->helper_private;
6746 encoder_funcs->commit(encoder);
6747
6748 }
6749
6750 /* Store real post-adjustment hardware mode. */ 6726 /* Store real post-adjustment hardware mode. */
6751 crtc->hwmode = *adjusted_mode; 6727 crtc->hwmode = *adjusted_mode;
6752 6728
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 2abaaf65ae8d..ff993a01d039 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -2348,9 +2348,7 @@ static void intel_dp_encoder_destroy(struct drm_encoder *encoder)
2348 2348
2349static const struct drm_encoder_helper_funcs intel_dp_helper_funcs = { 2349static const struct drm_encoder_helper_funcs intel_dp_helper_funcs = {
2350 .mode_fixup = intel_dp_mode_fixup, 2350 .mode_fixup = intel_dp_mode_fixup,
2351 .prepare = intel_encoder_noop,
2352 .mode_set = intel_dp_mode_set, 2351 .mode_set = intel_dp_mode_set,
2353 .commit = intel_encoder_noop,
2354 .disable = intel_encoder_disable, 2352 .disable = intel_encoder_disable,
2355}; 2353};
2356 2354
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index c28fadae8758..673e8d484bfa 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -414,7 +414,6 @@ extern bool intel_set_mode(struct drm_crtc *crtc, struct drm_display_mode *mode,
414 int x, int y, struct drm_framebuffer *old_fb); 414 int x, int y, struct drm_framebuffer *old_fb);
415extern void intel_crtc_load_lut(struct drm_crtc *crtc); 415extern void intel_crtc_load_lut(struct drm_crtc *crtc);
416extern void intel_crtc_update_dpms(struct drm_crtc *crtc); 416extern void intel_crtc_update_dpms(struct drm_crtc *crtc);
417extern void intel_encoder_noop(struct drm_encoder *encoder);
418extern void intel_encoder_disable(struct drm_encoder *encoder); 417extern void intel_encoder_disable(struct drm_encoder *encoder);
419extern void intel_encoder_destroy(struct drm_encoder *encoder); 418extern void intel_encoder_destroy(struct drm_encoder *encoder);
420extern void intel_encoder_dpms(struct intel_encoder *encoder, int mode); 419extern void intel_encoder_dpms(struct intel_encoder *encoder, int mode);
diff --git a/drivers/gpu/drm/i915/intel_dvo.c b/drivers/gpu/drm/i915/intel_dvo.c
index c55a13ea7ae8..84c0867e212b 100644
--- a/drivers/gpu/drm/i915/intel_dvo.c
+++ b/drivers/gpu/drm/i915/intel_dvo.c
@@ -318,9 +318,7 @@ static void intel_dvo_destroy(struct drm_connector *connector)
318 318
319static const struct drm_encoder_helper_funcs intel_dvo_helper_funcs = { 319static const struct drm_encoder_helper_funcs intel_dvo_helper_funcs = {
320 .mode_fixup = intel_dvo_mode_fixup, 320 .mode_fixup = intel_dvo_mode_fixup,
321 .prepare = intel_encoder_noop,
322 .mode_set = intel_dvo_mode_set, 321 .mode_set = intel_dvo_mode_set,
323 .commit = intel_encoder_noop,
324 .disable = intel_encoder_disable, 322 .disable = intel_encoder_disable,
325}; 323};
326 324
diff --git a/drivers/gpu/drm/i915/intel_hdmi.c b/drivers/gpu/drm/i915/intel_hdmi.c
index ef8409794ab6..c9535cee1a73 100644
--- a/drivers/gpu/drm/i915/intel_hdmi.c
+++ b/drivers/gpu/drm/i915/intel_hdmi.c
@@ -885,17 +885,13 @@ static void intel_hdmi_destroy(struct drm_connector *connector)
885 885
886static const struct drm_encoder_helper_funcs intel_hdmi_helper_funcs_hsw = { 886static const struct drm_encoder_helper_funcs intel_hdmi_helper_funcs_hsw = {
887 .mode_fixup = intel_hdmi_mode_fixup, 887 .mode_fixup = intel_hdmi_mode_fixup,
888 .prepare = intel_encoder_noop,
889 .mode_set = intel_ddi_mode_set, 888 .mode_set = intel_ddi_mode_set,
890 .commit = intel_encoder_noop,
891 .disable = intel_encoder_disable, 889 .disable = intel_encoder_disable,
892}; 890};
893 891
894static const struct drm_encoder_helper_funcs intel_hdmi_helper_funcs = { 892static const struct drm_encoder_helper_funcs intel_hdmi_helper_funcs = {
895 .mode_fixup = intel_hdmi_mode_fixup, 893 .mode_fixup = intel_hdmi_mode_fixup,
896 .prepare = intel_encoder_noop,
897 .mode_set = intel_hdmi_mode_set, 894 .mode_set = intel_hdmi_mode_set,
898 .commit = intel_encoder_noop,
899 .disable = intel_encoder_disable, 895 .disable = intel_encoder_disable,
900}; 896};
901 897
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c
index fad82b2721ed..5fc7abca28ee 100644
--- a/drivers/gpu/drm/i915/intel_lvds.c
+++ b/drivers/gpu/drm/i915/intel_lvds.c
@@ -570,9 +570,7 @@ static int intel_lvds_set_property(struct drm_connector *connector,
570 570
571static const struct drm_encoder_helper_funcs intel_lvds_helper_funcs = { 571static const struct drm_encoder_helper_funcs intel_lvds_helper_funcs = {
572 .mode_fixup = intel_lvds_mode_fixup, 572 .mode_fixup = intel_lvds_mode_fixup,
573 .prepare = intel_encoder_noop,
574 .mode_set = intel_lvds_mode_set, 573 .mode_set = intel_lvds_mode_set,
575 .commit = intel_encoder_noop,
576 .disable = intel_encoder_disable, 574 .disable = intel_encoder_disable,
577}; 575};
578 576
diff --git a/drivers/gpu/drm/i915/intel_sdvo.c b/drivers/gpu/drm/i915/intel_sdvo.c
index 88fb30dff758..8cdc674ff4b7 100644
--- a/drivers/gpu/drm/i915/intel_sdvo.c
+++ b/drivers/gpu/drm/i915/intel_sdvo.c
@@ -1889,9 +1889,7 @@ done:
1889 1889
1890static const struct drm_encoder_helper_funcs intel_sdvo_helper_funcs = { 1890static const struct drm_encoder_helper_funcs intel_sdvo_helper_funcs = {
1891 .mode_fixup = intel_sdvo_mode_fixup, 1891 .mode_fixup = intel_sdvo_mode_fixup,
1892 .prepare = intel_encoder_noop,
1893 .mode_set = intel_sdvo_mode_set, 1892 .mode_set = intel_sdvo_mode_set,
1894 .commit = intel_encoder_noop,
1895 .disable = intel_encoder_disable 1893 .disable = intel_encoder_disable
1896}; 1894};
1897 1895
diff --git a/drivers/gpu/drm/i915/intel_tv.c b/drivers/gpu/drm/i915/intel_tv.c
index 16cb11405068..5dc08b931ff9 100644
--- a/drivers/gpu/drm/i915/intel_tv.c
+++ b/drivers/gpu/drm/i915/intel_tv.c
@@ -1479,9 +1479,7 @@ out:
1479 1479
1480static const struct drm_encoder_helper_funcs intel_tv_helper_funcs = { 1480static const struct drm_encoder_helper_funcs intel_tv_helper_funcs = {
1481 .mode_fixup = intel_tv_mode_fixup, 1481 .mode_fixup = intel_tv_mode_fixup,
1482 .prepare = intel_encoder_noop,
1483 .mode_set = intel_tv_mode_set, 1482 .mode_set = intel_tv_mode_set,
1484 .commit = intel_encoder_noop,
1485 .disable = intel_encoder_disable, 1483 .disable = intel_encoder_disable,
1486}; 1484};
1487 1485