]> git.baikalelectronics.ru Git - kernel.git/commit
fbdev: fbcon: check if mode can handle new screen
authorAntonino A. Daplas <adaplas@gmail.com>
Tue, 8 May 2007 07:39:37 +0000 (00:39 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:32 +0000 (11:15 -0700)
commitddd549cf6b1f077671477ab0aff8caec95be44b0
tree933e9a4b7b0a0d871aaccd7d44e9224ea6c4a0b5
parent54019056ed982f2011ad80a3e67fe31e6c07af90
fbdev: fbcon: check if mode can handle new screen

Check if the mode can properly display the screen.  This will be needed by
drivers where the capability is not constant with each mode.  The function
fb_set_var() will query fbcon the requirement, then it will query the driver
(via a new hook fb_get_caps()) its capability.  If the driver's capability
cannot handle fbcon's requirement, then fb_set_var() will fail.

For example, if a particular driver supports 2 modes where:

mode1 = can only display 8x16 bitmaps
mode2 = can display any bitmap

then if current mode = mode2 and current font = 12x22

fbset <mode1> /* mode1 cannot handle 12x22 */
fbset will fail

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/console/fbcon.c
drivers/video/fbmem.c
include/linux/fb.h