/* fb_videomode_to_modelist: convert mode array to mode list @modedb: array of struct fb_videomode @num: number of entries in array @head: struct list_head of modelist  */
void fb_videomode_to_modelist(const struct fb_videomode *modedb, int num, struct list_head *head)
/* fb_videomode_to_modelist: convert mode array to mode list @modedb: array of struct fb_videomode @num: number of entries in array @head: struct list_head of modelist  */
void fb_videomode_to_modelist(const struct fb_videomode *modedb, int num, struct list_head *head)
{
	int i;
	INIT_LIST_HEAD(head);
	for (i = 0; i < num; i++) {
		if (fb_add_videomode(&modedb[i], head))
			return;
	}
}