X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Fsstfb.c;fp=drivers%2Fvideo%2Fsstfb.c;h=99921df35474d079dd696b4f1ebd98fe98efb458;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=dad54e73147b4d68420fb5c189889c94213f34bd;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/drivers/video/sstfb.c b/drivers/video/sstfb.c index dad54e731..99921df35 100644 --- a/drivers/video/sstfb.c +++ b/drivers/video/sstfb.c @@ -32,7 +32,7 @@ -TODO: at one time or another test that the mode is acceptable by the monitor -ASK: Can I choose different ordering for the color bitfields (rgba argb ...) - which one should i use ? is there any preferred one ? It seems ARGB is + wich one should i use ? is there any preferred one ? It seems ARGB is the one ... -TODO: in set_var check the validity of timings (hsync vsync)... -TODO: check and recheck the use of sst_wait_idle : we don't flush the fifo via @@ -82,6 +82,7 @@ * Includes */ +#include #include #include #include @@ -1193,11 +1194,10 @@ static struct dac_switch dacs[] __devinitdata = { static int __devinit sst_detect_dactype(struct fb_info *info, struct sstfb_par *par) { int i, ret = 0; - - for (i = 0; i < ARRAY_SIZE(dacs); i++) { + + for (i=0; ipar; struct pci_dev *dev = par->dev; u32 pci_res[pci_s];