aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_lvds.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-09-09 10:14:28 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-09 12:00:13 -0400
commit4ef69c7a64b78d477d1666eba258ca049e8bac91 (patch)
tree7d75ec83524c1f1414eddc8ff2c14a4124f54983 /drivers/gpu/drm/i915/intel_lvds.c
parent1af5fa1b7e5ff8332f8a2ee3c5fb44d93b34868d (diff)
drm/i915: Rename intel_encoder->enc to base for consistency
[Patch is slightly larger than is strictly necessary to fixup surrounding checkpatch.pl errors.] Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_lvds.c')
-rw-r--r--drivers/gpu/drm/i915/intel_lvds.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c
index ef6455104ff1..ed1c87636814 100644
--- a/drivers/gpu/drm/i915/intel_lvds.c
+++ b/drivers/gpu/drm/i915/intel_lvds.c
@@ -50,7 +50,7 @@ struct intel_lvds {
50 50
51static struct intel_lvds *enc_to_intel_lvds(struct drm_encoder *encoder) 51static struct intel_lvds *enc_to_intel_lvds(struct drm_encoder *encoder)
52{ 52{
53 return container_of(enc_to_intel_encoder(encoder), struct intel_lvds, base); 53 return container_of(encoder, struct intel_lvds, base.base);
54} 54}
55 55
56static void intel_lvds_lock_panel(struct drm_device *dev, bool lock) 56static void intel_lvds_lock_panel(struct drm_device *dev, bool lock)
@@ -437,7 +437,7 @@ static int intel_lvds_get_modes(struct drm_connector *connector)
437{ 437{
438 struct drm_device *dev = connector->dev; 438 struct drm_device *dev = connector->dev;
439 struct drm_encoder *encoder = intel_attached_encoder(connector); 439 struct drm_encoder *encoder = intel_attached_encoder(connector);
440 struct intel_encoder *intel_encoder = enc_to_intel_encoder(encoder); 440 struct intel_encoder *intel_encoder = to_intel_encoder(encoder);
441 struct drm_i915_private *dev_priv = dev->dev_private; 441 struct drm_i915_private *dev_priv = dev->dev_private;
442 int ret = 0; 442 int ret = 0;
443 443
@@ -839,15 +839,15 @@ void intel_lvds_init(struct drm_device *dev)
839 } 839 }
840 840
841 intel_encoder = &intel_lvds->base; 841 intel_encoder = &intel_lvds->base;
842 encoder = &intel_encoder->enc; 842 encoder = &intel_encoder->base;
843 connector = &intel_connector->base; 843 connector = &intel_connector->base;
844 drm_connector_init(dev, &intel_connector->base, &intel_lvds_connector_funcs, 844 drm_connector_init(dev, &intel_connector->base, &intel_lvds_connector_funcs,
845 DRM_MODE_CONNECTOR_LVDS); 845 DRM_MODE_CONNECTOR_LVDS);
846 846
847 drm_encoder_init(dev, &intel_encoder->enc, &intel_lvds_enc_funcs, 847 drm_encoder_init(dev, &intel_encoder->base, &intel_lvds_enc_funcs,
848 DRM_MODE_ENCODER_LVDS); 848 DRM_MODE_ENCODER_LVDS);
849 849
850 drm_mode_connector_attach_encoder(&intel_connector->base, &intel_encoder->enc); 850 drm_mode_connector_attach_encoder(&intel_connector->base, &intel_encoder->base);
851 intel_encoder->type = INTEL_OUTPUT_LVDS; 851 intel_encoder->type = INTEL_OUTPUT_LVDS;
852 852
853 intel_encoder->clone_mask = (1 << INTEL_LVDS_CLONE_BIT); 853 intel_encoder->clone_mask = (1 << INTEL_LVDS_CLONE_BIT);