Commit 1c00802d authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'fbdev-fixes-for-linus' of...

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
parents dc99bf78 e504b848
...@@ -855,6 +855,7 @@ const struct fb_videomode *fb_find_nearest_mode(const struct fb_videomode *mode, ...@@ -855,6 +855,7 @@ const struct fb_videomode *fb_find_nearest_mode(const struct fb_videomode *mode,
abs(cmode->yres - mode->yres); abs(cmode->yres - mode->yres);
if (diff > d) { if (diff > d) {
diff = d; diff = d;
diff_refresh = abs(cmode->refresh - mode->refresh);
best = cmode; best = cmode;
} else if (diff == d) { } else if (diff == d) {
d = abs(cmode->refresh - mode->refresh); d = abs(cmode->refresh - mode->refresh);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment