aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_dp.c
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2013-05-08 06:14:07 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-05-10 15:56:41 -0400
commit15e6bf74b660c2e7aecc200ac77eb19eb6628240 (patch)
tree54b99d59a3dce44c641aadc9db99fb6316fd54d9 /drivers/gpu/drm/i915/intel_dp.c
parent68b4d8247033b425ae948f02885c2aed5ae823f3 (diff)
drm/i915: remove is_pch_edp() helpers and state variable
There are no more users for these, so remove them. Signed-off-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_dp.c')
-rw-r--r--drivers/gpu/drm/i915/intel_dp.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 3ab683af5256..fa7e66b4adc6 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -52,19 +52,6 @@ static bool is_edp(struct intel_dp *intel_dp)
52 return intel_dig_port->base.type == INTEL_OUTPUT_EDP; 52 return intel_dig_port->base.type == INTEL_OUTPUT_EDP;
53} 53}
54 54
55/**
56 * is_pch_edp - is the port on the PCH and attached to an eDP panel?
57 * @intel_dp: DP struct
58 *
59 * Returns true if the given DP struct corresponds to a PCH DP port attached
60 * to an eDP panel, false otherwise. Helpful for determining whether we
61 * may need FDI resources for a given DP output or not.
62 */
63static bool is_pch_edp(struct intel_dp *intel_dp)
64{
65 return intel_dp->is_pch_edp;
66}
67
68static struct drm_device *intel_dp_to_dev(struct intel_dp *intel_dp) 55static struct drm_device *intel_dp_to_dev(struct intel_dp *intel_dp)
69{ 56{
70 struct intel_digital_port *intel_dig_port = dp_to_dig_port(intel_dp); 57 struct intel_digital_port *intel_dig_port = dp_to_dig_port(intel_dp);
@@ -93,25 +80,6 @@ static struct intel_dp *intel_attached_dp(struct drm_connector *connector)
93 return enc_to_intel_dp(&intel_attached_encoder(connector)->base); 80 return enc_to_intel_dp(&intel_attached_encoder(connector)->base);
94} 81}
95 82
96/**
97 * intel_encoder_is_pch_edp - is the given encoder a PCH attached eDP?
98 * @encoder: DRM encoder
99 *
100 * Return true if @encoder corresponds to a PCH attached eDP panel. Needed
101 * by intel_display.c.
102 */
103bool intel_encoder_is_pch_edp(struct drm_encoder *encoder)
104{
105 struct intel_dp *intel_dp;
106
107 if (!encoder)
108 return false;
109
110 intel_dp = enc_to_intel_dp(encoder);
111
112 return is_pch_edp(intel_dp);
113}
114
115static void intel_dp_link_down(struct intel_dp *intel_dp); 83static void intel_dp_link_down(struct intel_dp *intel_dp);
116 84
117static int 85static int
@@ -2981,10 +2949,6 @@ intel_dp_init_connector(struct intel_digital_port *intel_dig_port,
2981 intel_dp->DP = I915_READ(intel_dp->output_reg); 2949 intel_dp->DP = I915_READ(intel_dp->output_reg);
2982 intel_dp->attached_connector = intel_connector; 2950 intel_dp->attached_connector = intel_connector;
2983 2951
2984 if (HAS_PCH_SPLIT(dev) && port == PORT_D)
2985 if (intel_dpd_is_edp(dev))
2986 intel_dp->is_pch_edp = true;
2987
2988 type = DRM_MODE_CONNECTOR_DisplayPort; 2952 type = DRM_MODE_CONNECTOR_DisplayPort;
2989 /* 2953 /*
2990 * FIXME : We need to initialize built-in panels before external panels. 2954 * FIXME : We need to initialize built-in panels before external panels.