/* Fetch the EDID information from @connector using the DDC bus.  */
int intel_ddc_get_modes(struct intel_output *intel_output)
/* Fetch the EDID information from @connector using the DDC bus.  */
int intel_ddc_get_modes(struct intel_output *intel_output)
{
	struct edid *edid;
	int ret = 0;
	intel_i2c_quirk_set(intel_output->base.dev, true);
	edid = drm_get_edid(&intel_output->base, intel_output->ddc_bus);
	intel_i2c_quirk_set(intel_output->base.dev, false);
	if (edid) {
		drm_mode_connector_update_edid_property(&intel_output->base,
							edid);
		ret = drm_add_edid_modes(&intel_output->base, edid);
		intel_output->base.display_info.raw_edid = NULL;
		kfree(edid);
	}
	return ret;
}