/* XXX If drm_dmt_modes ever regrows the CVT-R modes (and it will) this will need to account for them.  */
static int drm_gtf_modes_for_range(struct drm_connector *connector, struct detailed_timing *timing)
/* XXX If drm_dmt_modes ever regrows the CVT-R modes (and it will) this will need to account for them.  */
static int drm_gtf_modes_for_range(struct drm_connector *connector, struct detailed_timing *timing)
{
	int i, modes = 0;
	struct drm_display_mode *newmode;
	struct drm_device *dev = connector->dev;
	for (i = 0; i < drm_num_dmt_modes; i++) {
		if (mode_in_range(drm_dmt_modes + i, timing)) {
			newmode = drm_mode_duplicate(dev, &drm_dmt_modes[i]);
			if (newmode) {
				drm_mode_probed_add(connector, newmode);
				modes++;
			}
		}
	}
	return modes;
}