/* Standard modes can be calculated using the CVT standard. Grab them from @edid, calculate them, and add them to the list.  */
static int add_standard_modes(struct drm_connector *connector, struct edid *edid)
/* Standard modes can be calculated using the CVT standard. Grab them from @edid, calculate them, and add them to the list.  */
static int add_standard_modes(struct drm_connector *connector, struct edid *edid)
{
	struct drm_device *dev = connector->dev;
	int i, modes = 0;
	int timing_level;
	timing_level = standard_timing_level(edid);
	for (i = 0; i < EDID_STD_TIMINGS; i++) {
		struct std_timing *t = &edid->standard_timings[i];
		struct drm_display_mode *newmode;
		if (t->hsize == 1 && t->vfreq_aspect == 1)
			continue;
		newmode = drm_mode_std(dev, &edid->standard_timings[i],
				       edid->revision, timing_level);
		if (newmode) {
			drm_mode_probed_add(connector, newmode);
			modes++;
		}
	}
	return modes;
}