]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8ef1790d4aa1a8c35182ae6c638e55424fca9f1a
tree995e1dc7b1f0c172c4f53acad3a236138d378ce2
parentf94959c8e86e3ce2b30017f8e56cd492f6e453db
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