From 6b745b6fd02213f4b2fef2f2635985929fc5b8cc Mon Sep 17 00:00:00 2001 From: Michal Januszewski Date: Mon, 28 Apr 2008 02:14:48 -0700 Subject: [PATCH] fbdev: make the best-fit section of fb_find_mode return the closest matching mode Currently, if a perfect match in terms of resolution is not found, fb_find_mode() only looks for a best-fit mode among modes with a higher resolution than the one requested. Thus, if the user requests a resolution higher than the largest supported one, they are dropped to the default mode (usually a low resolution one). Change this behaviour so that all valid video modes are considered when looking for a best-fit mode, while still preferring modes with a higher resolution. Signed-off-by: Michal Januszewski Cc: Krzysztof Helt Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-format-patch failed