/* Return the list of DDC modes if available, or the BIOS fixed mode otherwise.  */
static int intel_lvds_get_modes(struct drm_connector *connector)
/* Return the list of DDC modes if available, or the BIOS fixed mode otherwise.  */
static int intel_lvds_get_modes(struct drm_connector *connector)
{
	struct drm_device *dev = connector->dev;
	struct intel_output *intel_output = to_intel_output(connector);
	struct drm_i915_private *dev_priv = dev->dev_private;
	int ret = 0;
	ret = intel_ddc_get_modes(intel_output);
	if (ret)
		return ret;
	connector->display_info.min_vfreq = 0;
	connector->display_info.max_vfreq = 200;
	connector->display_info.min_hfreq = 0;
	connector->display_info.max_hfreq = 200;
	if (dev_priv->panel_fixed_mode != NULL) {
		struct drm_display_mode *mode;
		mode = drm_mode_duplicate(dev, dev_priv->panel_fixed_mode);
		drm_mode_probed_add(connector, mode);
		return 1;
	}
	return 0;
}