kernel-ark/include
Michal Januszewski 8fb6567e34 [PATCH] fbdev: fix the fb_find_nearest_mode() function
Currently the fb_find_nearest_mode() function finds a mode with screen
resolution closest to that described by the 'var' argument and with some
arbitrary refresh rate (eg.  in the following sequence of refresh rates: 70 60
53 85 75, 53 is selected).

This patch fixes the function so that it looks for the closest mode as far as
both resolution and refresh rate are concerned.  The function's first argument
is changed to fb_videomode so that the refresh rate can be specified by the
caller, as fb_var_screeninfo doesn't have any fields that could directly hold
this data.

Signed-off-by: Michal Januszewski <spock@gentoo.org>
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-07 07:53:52 -08:00
..
acpi
asm-alpha [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
asm-arm
asm-arm26
asm-cris
asm-frv
asm-generic [PATCH] RapidIO support: core base 2005-11-07 07:53:46 -08:00
asm-h8300
asm-i386 [PATCH] Kprobes: Track kprobe on a per_cpu basis - i386 changes 2005-11-07 07:53:45 -08:00
asm-ia64 [PATCH] Kprobes: Track kprobe on a per_cpu basis - ia64 changes 2005-11-07 07:53:45 -08:00
asm-m32r [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
asm-m68k
asm-m68knommu
asm-mips
asm-parisc
asm-powerpc [PATCH] Kprobes: Track kprobe on a per_cpu basis - ppc64 changes 2005-11-07 07:53:45 -08:00
asm-ppc [PATCH] RapidIO support: ppc32 2005-11-07 07:53:47 -08:00
asm-ppc64
asm-s390 [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
asm-sh
asm-sh64
asm-sparc [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
asm-sparc64 [PATCH] Kprobes: Track kprobe on a per_cpu basis - sparc64 changes 2005-11-07 07:53:46 -08:00
asm-um
asm-v850
asm-x86_64 [PATCH] Kprobes: Track kprobe on a per_cpu basis - x86_64 changes 2005-11-07 07:53:46 -08:00
asm-xtensa
keys
linux [PATCH] fbdev: fix the fb_find_nearest_mode() function 2005-11-07 07:53:52 -08:00
math-emu
media
mtd
net
pcmcia
rdma
rxrpc
scsi
sound
video