/* Some of the detailed timing sections may contain mode information. Grab it and add it to the list.  */
static int add_detailed_info(struct drm_connector *connector, struct edid *edid, u32 quirks)
/* Some of the detailed timing sections may contain mode information. Grab it and add it to the list.  */
static int add_detailed_info(struct drm_connector *connector, struct edid *edid, u32 quirks)
{
	int i, modes = 0;
	for (i = 0; i < EDID_DETAILED_TIMINGS; i++) {
		struct detailed_timing *timing = &edid->detailed_timings[i];
		int preferred = (i == 0) && (edid->features & DRM_EDID_FEATURE_PREFERRED_TIMING);
		if (!timing->pixel_clock && edid->version == 1 &&
			edid->revision == 0)
			continue;
		modes += add_detailed_modes(connector, timing, edid, quirks,
					    preferred);
	}
	return modes;
}