aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_lvds.c
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyuw@linux.intel.com>2010-03-30 02:39:31 -0400
committerEric Anholt <eric@anholt.net>2010-04-09 17:17:31 -0400
commit335af9a235a82842854b394507ab5e310d88be42 (patch)
treee4d05c21023b46e98082558cbb03db4968274348 /drivers/gpu/drm/i915/intel_lvds.c
parentc1c43977e6fc789cbde094303fa9ace629a35aca (diff)
drm/i915: change intel_ddc_get_modes() function parameters
This one replaces original param for intel_ddc_get_modes() with DRM connector and i2c bus adapter instead. With explicit params, we won't require that a single driver structure must hold connector and DDC bus reference, which ease the conversion to splitted encoder/ connector model. It also clears up for some cases that we would steal other DDC bus for mode probe, like VGA analog DDC probe for DVI-I. Also it fixed a bug in old DVI-I probe handling, that failed to restore origin analog GPIO port. Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com> Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_lvds.c')
-rw-r--r--drivers/gpu/drm/i915/intel_lvds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c
index 527cfa2626bf..a3b82081e1a7 100644
--- a/drivers/gpu/drm/i915/intel_lvds.c
+++ b/drivers/gpu/drm/i915/intel_lvds.c
@@ -639,7 +639,7 @@ static int intel_lvds_get_modes(struct drm_connector *connector)
639 int ret = 0; 639 int ret = 0;
640 640
641 if (dev_priv->lvds_edid_good) { 641 if (dev_priv->lvds_edid_good) {
642 ret = intel_ddc_get_modes(intel_encoder); 642 ret = intel_ddc_get_modes(connector, intel_encoder->ddc_bus);
643 643
644 if (ret) 644 if (ret)
645 return ret; 645 return ret;
@@ -1066,7 +1066,7 @@ void intel_lvds_init(struct drm_device *dev)
1066 */ 1066 */
1067 dev_priv->lvds_edid_good = true; 1067 dev_priv->lvds_edid_good = true;
1068 1068
1069 if (!intel_ddc_get_modes(intel_encoder)) 1069 if (!intel_ddc_get_modes(connector, intel_encoder->ddc_bus))
1070 dev_priv->lvds_edid_good = false; 1070 dev_priv->lvds_edid_good = false;
1071 1071
1072 list_for_each_entry(scan, &connector->probed_modes, head) { 1072 list_for_each_entry(scan, &connector->probed_modes, head) {