aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-08-04 08:50:23 -0400
committerEric Anholt <eric@anholt.net>2010-08-09 14:24:28 -0400
commitea5b213ad4b161463e76b63dbb115ea20e2200f0 (patch)
treeb6d07b00b479fcc3849e0fdc4c98f498aa3645bf /drivers/gpu/drm/i915/intel_display.c
parent94113cecaea5067a0f7e1135abbd92cf2c297d42 (diff)
drm/i915: Subclass intel_encoder.
Subclass intel_encoder to reduce the pointer dance through intel_encoder->dev_priv. 10 files changed, 896 insertions(+), 997 deletions(-) Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index c7f19ec88f98..9839494528ae 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -2537,6 +2537,20 @@ void intel_encoder_commit (struct drm_encoder *encoder)
2537 encoder_funcs->dpms(encoder, DRM_MODE_DPMS_ON); 2537 encoder_funcs->dpms(encoder, DRM_MODE_DPMS_ON);
2538} 2538}
2539 2539
2540void intel_encoder_destroy(struct drm_encoder *encoder)
2541{
2542 struct intel_encoder *intel_encoder = enc_to_intel_encoder(encoder);
2543
2544 if (intel_encoder->ddc_bus)
2545 intel_i2c_destroy(intel_encoder->ddc_bus);
2546
2547 if (intel_encoder->i2c_bus)
2548 intel_i2c_destroy(intel_encoder->i2c_bus);
2549
2550 drm_encoder_cleanup(encoder);
2551 kfree(intel_encoder);
2552}
2553
2540static bool intel_crtc_mode_fixup(struct drm_crtc *crtc, 2554static bool intel_crtc_mode_fixup(struct drm_crtc *crtc,
2541 struct drm_display_mode *mode, 2555 struct drm_display_mode *mode,
2542 struct drm_display_mode *adjusted_mode) 2556 struct drm_display_mode *adjusted_mode)