svgalib: mode selection updates
authorOndrej Zajicek <santiago@crfreenet.org>
Tue, 16 Oct 2007 08:29:52 +0000 (01:29 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:43:22 +0000 (09:43 -0700)
commitd4b766a0bdab8d07b720c8d0a84292949a7d58bd
tree995e1dc7b1f0c172c4f53acad3a236138d378ce2
parentd7dd91ff236b90a8aca2d619554b07bcb82953c7
svgalib: mode selection updates

This patch changes mode selection matching algorithm.  It allows to choose
mode with matching depth even when requested color lengths are greater than
color lengths of every mode with requested color depth.

It also fixes bug in s3fb - wrong error value returned when format is not
supported by chip.

Signed-off-by: Ondrej Zajicek <santiago@crfreenet.org>
Signed-off-by: Antonino Daplas <adaplas@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/s3fb.c
drivers/video/svgalib.c