2001-11-30 19:19:01

by James Simmons

[permalink] [raw]
Subject: [PATCH] fbdev blank cleanup


This patch is pretty big. Basically it moves the blank function out of
struct fb_info into struct fb_ops where it belongs. I makes it flexiable
that if your hardware doesn't support blanking of any kind that you can
leave this field NULL in struct fb_ops. At present if you don't supply a
blank function it could oops (see where blank() is called in fbcon.c).
Thus people are forced to supply a empty function. This saves that
overhead of a function call for those drivers. I have tested it on my
local machine for the past 24 hours. It works fine. I did a compile test
for every driver that is avaliable on the ix86 thus those drivers do
compile and most likely work. Please test this on other hardware
platforms and across drivers.

Since the patch is to big it is at the following link:

http://www.transvirtual.com/~jsimmons/blank.diff

Please note it also includes the patch I sent Linus earlier for fb.h. I
will remove that part once that patch goes in. Thank you.