X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Fi810%2Fi810_gtf.c;h=64f087a4466bc31a8dbaf572660b9832f3fed44b;hb=f7f1b0f1e2fbadeab12d24236000e778aa9b1ead;hp=7d0c02ca0a42469a77d7a762a8e826a271be9396;hpb=9bf4aaab3e101692164d49b7ca357651eb691cb6;p=linux-2.6.git diff --git a/drivers/video/i810/i810_gtf.c b/drivers/video/i810/i810_gtf.c index 7d0c02ca0..64f087a44 100644 --- a/drivers/video/i810/i810_gtf.c +++ b/drivers/video/i810/i810_gtf.c @@ -26,7 +26,7 @@ struct wm_info { u32 wm; }; -struct wm_info i810_wm_8_100[] = { +static struct wm_info i810_wm_8_100[] = { { 15, 0x0070c000 }, { 19, 0x0070c000 }, { 25, 0x22003000 }, { 28, 0x22003000 }, { 31, 0x22003000 }, { 36, 0x22007000 }, { 40, 0x22007000 }, { 45, 0x22007000 }, { 49, 0x22008000 }, @@ -40,7 +40,7 @@ struct wm_info i810_wm_8_100[] = { { 218, 0x2220f000 }, { 229, 0x22210000 }, { 234, 0x22210000 }, }; -struct wm_info i810_wm_16_100[] = { +static struct wm_info i810_wm_16_100[] = { { 15, 0x0070c000 }, { 19, 0x0020c000 }, { 25, 0x22006000 }, { 28, 0x22006000 }, { 31, 0x22007000 }, { 36, 0x22007000 }, { 40, 0x22007000 }, { 45, 0x22007000 }, { 49, 0x22009000 }, @@ -54,7 +54,7 @@ struct wm_info i810_wm_16_100[] = { { 218, 0x22416000 }, { 229, 0x22416000 }, }; -struct wm_info i810_wm_24_100[] = { +static struct wm_info i810_wm_24_100[] = { { 15, 0x0020c000 }, { 19, 0x0040c000 }, { 25, 0x22009000 }, { 28, 0x22009000 }, { 31, 0x2200a000 }, { 36, 0x2210c000 }, { 40, 0x2210c000 }, { 45, 0x2210c000 }, { 49, 0x22111000 }, @@ -67,7 +67,7 @@ struct wm_info i810_wm_24_100[] = { { 195, 0x44419000 }, { 202, 0x44419000 }, { 204, 0x44419000 }, }; -struct wm_info i810_wm_8_133[] = { +static struct wm_info i810_wm_8_133[] = { { 15, 0x0070c000 }, { 19, 0x0070c000 }, { 25, 0x22003000 }, { 28, 0x22003000 }, { 31, 0x22003000 }, { 36, 0x22007000 }, { 40, 0x22007000 }, { 45, 0x22007000 }, { 49, 0x22008000 }, @@ -81,7 +81,7 @@ struct wm_info i810_wm_8_133[] = { { 218, 0x2220f000 }, { 229, 0x22210000 }, { 234, 0x22210000 }, }; -struct wm_info i810_wm_16_133[] = { +static struct wm_info i810_wm_16_133[] = { { 15, 0x0020c000 }, { 19, 0x0020c000 }, { 25, 0x22006000 }, { 28, 0x22006000 }, { 31, 0x22007000 }, { 36, 0x22007000 }, { 40, 0x22007000 }, { 45, 0x22007000 }, { 49, 0x22009000 }, @@ -95,7 +95,7 @@ struct wm_info i810_wm_16_133[] = { { 218, 0x22416000 }, { 229, 0x22416000 }, }; -struct wm_info i810_wm_24_133[] = { +static struct wm_info i810_wm_24_133[] = { { 15, 0x0020c000 }, { 19, 0x00408000 }, { 25, 0x22009000 }, { 28, 0x22009000 }, { 31, 0x2200a000 }, { 36, 0x2210c000 }, { 40, 0x2210c000 }, { 45, 0x2210c000 }, { 49, 0x22111000 }, @@ -124,7 +124,8 @@ void i810fb_encode_registers(const struct fb_var_screeninfo *var, struct i810fb_par *par, u32 xres, u32 yres) { int n, blank_s, blank_e; - u8 *mmio = par->mmio_start_virtual, msr = 0; + u8 __iomem *mmio = par->mmio_start_virtual; + u8 msr = 0; /* Horizontal */ /* htotal */