Merge branch 'fbdev-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/fbdev-2.6
* 'fbdev-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/fbdev-2.6: fbdev: Fix fb_find_nearest_mode refresh comparison
This commit is contained in:
commit
1c00802d3f
|
@ -855,6 +855,7 @@ const struct fb_videomode *fb_find_nearest_mode(const struct fb_videomode *mode,
|
|||
abs(cmode->yres - mode->yres);
|
||||
if (diff > d) {
|
||||
diff = d;
|
||||
diff_refresh = abs(cmode->refresh - mode->refresh);
|
||||
best = cmode;
|
||||
} else if (diff == d) {
|
||||
d = abs(cmode->refresh - mode->refresh);
|
||||
|
|
Loading…
Reference in New Issue