diff options
author | Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> | 2007-02-12 03:55:19 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 12:48:44 -0500 |
commit | 9791d763de8cca82b42a7a579e031db78e8011ff (patch) | |
tree | b3a13693bad97543a75a53a2c5d97ad63ed26c09 /drivers/video/savage/savagefb_driver.c | |
parent | 5c52cbeb7f27e1242e88f99f7f6486a16d5733c7 (diff) |
[PATCH] fbdev modedb: make more pointer parameters const
fbdev modedb: make more input and output pointer parameters const
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: James Simmons <jsimmons@infradead.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/savage/savagefb_driver.c')
-rw-r--r-- | drivers/video/savage/savagefb_driver.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/video/savage/savagefb_driver.c b/drivers/video/savage/savagefb_driver.c index 82b3deaae02d..4afa30522fdb 100644 --- a/drivers/video/savage/savagefb_driver.c +++ b/drivers/video/savage/savagefb_driver.c | |||
@@ -833,7 +833,8 @@ static void savage_set_default_par(struct savagefb_par *par, | |||
833 | vga_out8(0x3d5, cr66, par); | 833 | vga_out8(0x3d5, cr66, par); |
834 | } | 834 | } |
835 | 835 | ||
836 | static void savage_update_var(struct fb_var_screeninfo *var, struct fb_videomode *modedb) | 836 | static void savage_update_var(struct fb_var_screeninfo *var, |
837 | const struct fb_videomode *modedb) | ||
837 | { | 838 | { |
838 | var->xres = var->xres_virtual = modedb->xres; | 839 | var->xres = var->xres_virtual = modedb->xres; |
839 | var->yres = modedb->yres; | 840 | var->yres = modedb->yres; |
@@ -902,7 +903,7 @@ static int savagefb_check_var(struct fb_var_screeninfo *var, | |||
902 | } | 903 | } |
903 | 904 | ||
904 | if (!mode_valid) { | 905 | if (!mode_valid) { |
905 | struct fb_videomode *mode; | 906 | const struct fb_videomode *mode; |
906 | 907 | ||
907 | mode = fb_find_best_mode(var, &info->modelist); | 908 | mode = fb_find_best_mode(var, &info->modelist); |
908 | if (mode) { | 909 | if (mode) { |
@@ -2206,11 +2207,10 @@ static int __devinit savagefb_probe(struct pci_dev* dev, | |||
2206 | info->monspecs.modedb, info->monspecs.modedb_len, | 2207 | info->monspecs.modedb, info->monspecs.modedb_len, |
2207 | NULL, 8); | 2208 | NULL, 8); |
2208 | } else if (info->monspecs.modedb != NULL) { | 2209 | } else if (info->monspecs.modedb != NULL) { |
2209 | struct fb_videomode *modedb; | 2210 | const struct fb_videomode *mode; |
2210 | 2211 | ||
2211 | modedb = fb_find_best_display(&info->monspecs, | 2212 | mode = fb_find_best_display(&info->monspecs, &info->modelist); |
2212 | &info->modelist); | 2213 | savage_update_var(&info->var, mode); |
2213 | savage_update_var(&info->var, modedb); | ||
2214 | } | 2214 | } |
2215 | 2215 | ||
2216 | /* maximize virtual vertical length */ | 2216 | /* maximize virtual vertical length */ |