aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyuw@linux.intel.com>2010-03-29 04:44:15 -0400
committerEric Anholt <eric@anholt.net>2010-04-12 12:23:55 -0400
commit1f254ec2f1360202e2a024ce6b82df69fb14988f (patch)
tree42708abb943eea0231f8c0de29241067fd673398 /drivers
parent0c41ee2be6fff0fb3c933fc0ecfdfbce485620f0 (diff)
drm/i915: remove connector object in old output structure
As all display drivers have been converted, remove the left reference for connector object in old structure. Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c10
-rw-r--r--drivers/gpu/drm/i915/intel_drv.h4
2 files changed, 0 insertions, 14 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index e4dd16296fa2..ecf554aa768a 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -5238,16 +5238,6 @@ void intel_modeset_cleanup(struct drm_device *dev)
5238} 5238}
5239 5239
5240 5240
5241/* current intel driver doesn't take advantage of encoders
5242 always give back the encoder for the connector
5243*/
5244struct drm_encoder *intel_best_encoder(struct drm_connector *connector)
5245{
5246 struct intel_encoder *intel_encoder = to_intel_encoder(connector);
5247
5248 return &intel_encoder->enc;
5249}
5250
5251/* 5241/*
5252 * Return which encoder is currently attached for connector. 5242 * Return which encoder is currently attached for connector.
5253 */ 5243 */
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h
index c15ec471c849..8a64c154b42c 100644
--- a/drivers/gpu/drm/i915/intel_drv.h
+++ b/drivers/gpu/drm/i915/intel_drv.h
@@ -96,8 +96,6 @@ struct intel_framebuffer {
96 96
97 97
98struct intel_encoder { 98struct intel_encoder {
99 struct drm_connector base;
100
101 struct drm_encoder enc; 99 struct drm_encoder enc;
102 int type; 100 int type;
103 struct i2c_adapter *i2c_bus; 101 struct i2c_adapter *i2c_bus;
@@ -157,7 +155,6 @@ struct intel_crtc {
157}; 155};
158 156
159#define to_intel_crtc(x) container_of(x, struct intel_crtc, base) 157#define to_intel_crtc(x) container_of(x, struct intel_crtc, base)
160#define to_intel_encoder(x) container_of(x, struct intel_encoder, base)
161#define to_intel_connector(x) container_of(x, struct intel_connector, base) 158#define to_intel_connector(x) container_of(x, struct intel_connector, base)
162#define enc_to_intel_encoder(x) container_of(x, struct intel_encoder, enc) 159#define enc_to_intel_encoder(x) container_of(x, struct intel_encoder, enc)
163#define to_intel_framebuffer(x) container_of(x, struct intel_framebuffer, base) 160#define to_intel_framebuffer(x) container_of(x, struct intel_framebuffer, base)
@@ -189,7 +186,6 @@ extern void intel_crtc_load_lut(struct drm_crtc *crtc);
189extern void intel_encoder_prepare (struct drm_encoder *encoder); 186extern void intel_encoder_prepare (struct drm_encoder *encoder);
190extern void intel_encoder_commit (struct drm_encoder *encoder); 187extern void intel_encoder_commit (struct drm_encoder *encoder);
191 188
192extern struct drm_encoder *intel_best_encoder(struct drm_connector *connector);
193extern struct drm_encoder *intel_attached_encoder(struct drm_connector *connector); 189extern struct drm_encoder *intel_attached_encoder(struct drm_connector *connector);
194 190
195extern struct drm_display_mode *intel_crtc_mode_get(struct drm_device *dev, 191extern struct drm_display_mode *intel_crtc_mode_get(struct drm_device *dev,