Find closest videomode
const struct fb_videomode * fb_find_nearest_mode(const struct fb_videomode * mode, struct list_head * head);
mode
pointer to struct fb_videomode
head
pointer to modelist
Finds best matching videomode, smaller or greater in dimension. If more than 1 videomode is found, will return the videomode with the closest refresh rate.