Change-Id: If3c417c670962e4ca6ff92c3bd1a388c189f11ab
Signed-off-by: Erik Gilling <konkers@android.com>
bool (*mode_filter)(struct fb_videomode *mode))
{
struct fb_event event;
+ struct fb_modelist *m;
int i;
mutex_lock(&fb_info->info->lock);
}
}
+ /* in case the first mode was not matched */
+ m = list_first_entry(&fb_info->info->modelist, struct fb_modelist, list);
+ m->mode.flag |= FB_MODE_IS_FIRST;
+
fb_info->info->mode = (struct fb_videomode *)
fb_find_best_display(specs, &fb_info->info->modelist);