diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:20 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:20 -0500 |
commit | 90ab5ee94171b3e28de6bb42ee30b527014e0be7 (patch) | |
tree | fcf89889f6e881f2b231d3d20287c08174ce4b54 /drivers/video | |
parent | 476bc0015bf09dad39d36a8b19f76f0c181d1ec9 (diff) |
module_param: make bool parameters really bool (drivers & misc)
module_param(bool) used to counter-intuitively take an int. In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.
It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/aty/atyfb_base.c | 4 | ||||
-rw-r--r-- | drivers/video/aty/radeon_base.c | 18 | ||||
-rw-r--r-- | drivers/video/cirrusfb.c | 2 | ||||
-rw-r--r-- | drivers/video/hgafb.c | 2 | ||||
-rw-r--r-- | drivers/video/intelfb/intelfbdrv.c | 16 | ||||
-rw-r--r-- | drivers/video/logo/logo.c | 2 | ||||
-rw-r--r-- | drivers/video/neofb.c | 10 | ||||
-rw-r--r-- | drivers/video/omap/omapfb_main.c | 4 | ||||
-rw-r--r-- | drivers/video/omap2/dss/core.c | 2 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dsi.c | 4 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dss.h | 2 | ||||
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb-main.c | 8 | ||||
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb.h | 2 | ||||
-rw-r--r-- | drivers/video/pm2fb.c | 8 | ||||
-rw-r--r-- | drivers/video/pm3fb.c | 4 | ||||
-rw-r--r-- | drivers/video/riva/fbdev.c | 6 | ||||
-rw-r--r-- | drivers/video/smscufx.c | 4 | ||||
-rw-r--r-- | drivers/video/sstfb.c | 6 | ||||
-rw-r--r-- | drivers/video/tdfxfb.c | 2 | ||||
-rw-r--r-- | drivers/video/udlfb.c | 6 | ||||
-rw-r--r-- | drivers/video/uvesafb.c | 6 | ||||
-rw-r--r-- | drivers/video/vfb.c | 2 |
22 files changed, 60 insertions, 60 deletions
diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c index 44bdce4242ad..622f12b62a47 100644 --- a/drivers/video/aty/atyfb_base.c +++ b/drivers/video/aty/atyfb_base.c | |||
@@ -301,9 +301,9 @@ static struct fb_ops atyfb_ops = { | |||
301 | .fb_sync = atyfb_sync, | 301 | .fb_sync = atyfb_sync, |
302 | }; | 302 | }; |
303 | 303 | ||
304 | static int noaccel; | 304 | static bool noaccel; |
305 | #ifdef CONFIG_MTRR | 305 | #ifdef CONFIG_MTRR |
306 | static int nomtrr; | 306 | static bool nomtrr; |
307 | #endif | 307 | #endif |
308 | static int vram; | 308 | static int vram; |
309 | static int pll; | 309 | static int pll; |
diff --git a/drivers/video/aty/radeon_base.c b/drivers/video/aty/radeon_base.c index 150684882ef7..ce1506b75adf 100644 --- a/drivers/video/aty/radeon_base.c +++ b/drivers/video/aty/radeon_base.c | |||
@@ -263,19 +263,19 @@ static reg_val common_regs[] = { | |||
263 | 263 | ||
264 | static char *mode_option; | 264 | static char *mode_option; |
265 | static char *monitor_layout; | 265 | static char *monitor_layout; |
266 | static int noaccel = 0; | 266 | static bool noaccel = 0; |
267 | static int default_dynclk = -2; | 267 | static int default_dynclk = -2; |
268 | static int nomodeset = 0; | 268 | static bool nomodeset = 0; |
269 | static int ignore_edid = 0; | 269 | static bool ignore_edid = 0; |
270 | static int mirror = 0; | 270 | static bool mirror = 0; |
271 | static int panel_yres = 0; | 271 | static int panel_yres = 0; |
272 | static int force_dfp = 0; | 272 | static bool force_dfp = 0; |
273 | static int force_measure_pll = 0; | 273 | static bool force_measure_pll = 0; |
274 | #ifdef CONFIG_MTRR | 274 | #ifdef CONFIG_MTRR |
275 | static int nomtrr = 0; | 275 | static bool nomtrr = 0; |
276 | #endif | 276 | #endif |
277 | static int force_sleep; | 277 | static bool force_sleep; |
278 | static int ignore_devlist; | 278 | static bool ignore_devlist; |
279 | #ifdef CONFIG_PMAC_BACKLIGHT | 279 | #ifdef CONFIG_PMAC_BACKLIGHT |
280 | static int backlight = 1; | 280 | static int backlight = 1; |
281 | #else | 281 | #else |
diff --git a/drivers/video/cirrusfb.c b/drivers/video/cirrusfb.c index 6df7c54db0a3..6fb499e7678f 100644 --- a/drivers/video/cirrusfb.c +++ b/drivers/video/cirrusfb.c | |||
@@ -350,7 +350,7 @@ struct cirrusfb_info { | |||
350 | void (*unmap)(struct fb_info *info); | 350 | void (*unmap)(struct fb_info *info); |
351 | }; | 351 | }; |
352 | 352 | ||
353 | static int noaccel __devinitdata; | 353 | static bool noaccel __devinitdata; |
354 | static char *mode_option __devinitdata = "640x480@60"; | 354 | static char *mode_option __devinitdata = "640x480@60"; |
355 | 355 | ||
356 | /****************************************************************************/ | 356 | /****************************************************************************/ |
diff --git a/drivers/video/hgafb.c b/drivers/video/hgafb.c index 4394389caf68..c645f9282650 100644 --- a/drivers/video/hgafb.c +++ b/drivers/video/hgafb.c | |||
@@ -133,7 +133,7 @@ static struct fb_fix_screeninfo hga_fix __devinitdata = { | |||
133 | /* Don't assume that tty1 will be the initial current console. */ | 133 | /* Don't assume that tty1 will be the initial current console. */ |
134 | static int release_io_port = 0; | 134 | static int release_io_port = 0; |
135 | static int release_io_ports = 0; | 135 | static int release_io_ports = 0; |
136 | static int nologo = 0; | 136 | static bool nologo = 0; |
137 | 137 | ||
138 | /* ------------------------------------------------------------------------- | 138 | /* ------------------------------------------------------------------------- |
139 | * | 139 | * |
diff --git a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c index 5ba399991050..c94c91fd8668 100644 --- a/drivers/video/intelfb/intelfbdrv.c +++ b/drivers/video/intelfb/intelfbdrv.c | |||
@@ -230,15 +230,15 @@ MODULE_DESCRIPTION("Framebuffer driver for Intel(R) " SUPPORTED_CHIPSETS | |||
230 | MODULE_LICENSE("Dual BSD/GPL"); | 230 | MODULE_LICENSE("Dual BSD/GPL"); |
231 | MODULE_DEVICE_TABLE(pci, intelfb_pci_table); | 231 | MODULE_DEVICE_TABLE(pci, intelfb_pci_table); |
232 | 232 | ||
233 | static int accel = 1; | 233 | static bool accel = 1; |
234 | static int vram = 4; | 234 | static int vram = 4; |
235 | static int hwcursor = 0; | 235 | static bool hwcursor = 0; |
236 | static int mtrr = 1; | 236 | static bool mtrr = 1; |
237 | static int fixed = 0; | 237 | static bool fixed = 0; |
238 | static int noinit = 0; | 238 | static bool noinit = 0; |
239 | static int noregister = 0; | 239 | static bool noregister = 0; |
240 | static int probeonly = 0; | 240 | static bool probeonly = 0; |
241 | static int idonly = 0; | 241 | static bool idonly = 0; |
242 | static int bailearly = 0; | 242 | static int bailearly = 0; |
243 | static int voffset = 48; | 243 | static int voffset = 48; |
244 | static char *mode = NULL; | 244 | static char *mode = NULL; |
diff --git a/drivers/video/logo/logo.c b/drivers/video/logo/logo.c index ea7a8ccc830c..080c35b34bbb 100644 --- a/drivers/video/logo/logo.c +++ b/drivers/video/logo/logo.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <asm/bootinfo.h> | 21 | #include <asm/bootinfo.h> |
22 | #endif | 22 | #endif |
23 | 23 | ||
24 | static int nologo; | 24 | static bool nologo; |
25 | module_param(nologo, bool, 0); | 25 | module_param(nologo, bool, 0); |
26 | MODULE_PARM_DESC(nologo, "Disables startup logo"); | 26 | MODULE_PARM_DESC(nologo, "Disables startup logo"); |
27 | 27 | ||
diff --git a/drivers/video/neofb.c b/drivers/video/neofb.c index feea7b1dc386..fb3f67391105 100644 --- a/drivers/video/neofb.c +++ b/drivers/video/neofb.c | |||
@@ -84,11 +84,11 @@ | |||
84 | 84 | ||
85 | /* --------------------------------------------------------------------- */ | 85 | /* --------------------------------------------------------------------- */ |
86 | 86 | ||
87 | static int internal; | 87 | static bool internal; |
88 | static int external; | 88 | static bool external; |
89 | static int libretto; | 89 | static bool libretto; |
90 | static int nostretch; | 90 | static bool nostretch; |
91 | static int nopciburst; | 91 | static bool nopciburst; |
92 | static char *mode_option __devinitdata = NULL; | 92 | static char *mode_option __devinitdata = NULL; |
93 | 93 | ||
94 | #ifdef MODULE | 94 | #ifdef MODULE |
diff --git a/drivers/video/omap/omapfb_main.c b/drivers/video/omap/omapfb_main.c index 25d8e5103193..b291bfaac80e 100644 --- a/drivers/video/omap/omapfb_main.c +++ b/drivers/video/omap/omapfb_main.c | |||
@@ -47,9 +47,9 @@ static unsigned int def_rotate; | |||
47 | static unsigned int def_mirror; | 47 | static unsigned int def_mirror; |
48 | 48 | ||
49 | #ifdef CONFIG_FB_OMAP_MANUAL_UPDATE | 49 | #ifdef CONFIG_FB_OMAP_MANUAL_UPDATE |
50 | static int manual_update = 1; | 50 | static bool manual_update = 1; |
51 | #else | 51 | #else |
52 | static int manual_update; | 52 | static bool manual_update; |
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | static struct platform_device *fbdev_pdev; | 55 | static struct platform_device *fbdev_pdev; |
diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c index 86ec12e16c7c..da7b18576549 100644 --- a/drivers/video/omap2/dss/core.c +++ b/drivers/video/omap2/dss/core.c | |||
@@ -50,7 +50,7 @@ module_param_named(def_disp, def_disp_name, charp, 0); | |||
50 | MODULE_PARM_DESC(def_disp, "default display name"); | 50 | MODULE_PARM_DESC(def_disp, "default display name"); |
51 | 51 | ||
52 | #ifdef DEBUG | 52 | #ifdef DEBUG |
53 | unsigned int dss_debug; | 53 | bool dss_debug; |
54 | module_param_named(debug, dss_debug, bool, 0644); | 54 | module_param_named(debug, dss_debug, bool, 0644); |
55 | #endif | 55 | #endif |
56 | 56 | ||
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index 5abf8e7e7456..46f37883e499 100644 --- a/drivers/video/omap2/dss/dsi.c +++ b/drivers/video/omap2/dss/dsi.c | |||
@@ -340,8 +340,8 @@ struct dsi_packet_sent_handler_data { | |||
340 | static struct platform_device *dsi_pdev_map[MAX_NUM_DSI]; | 340 | static struct platform_device *dsi_pdev_map[MAX_NUM_DSI]; |
341 | 341 | ||
342 | #ifdef DEBUG | 342 | #ifdef DEBUG |
343 | static unsigned int dsi_perf; | 343 | static bool dsi_perf; |
344 | module_param_named(dsi_perf, dsi_perf, bool, 0644); | 344 | module_param(dsi_perf, bool, 0644); |
345 | #endif | 345 | #endif |
346 | 346 | ||
347 | static inline struct dsi_data *dsi_get_dsidrv_data(struct platform_device *dsidev) | 347 | static inline struct dsi_data *dsi_get_dsidrv_data(struct platform_device *dsidev) |
diff --git a/drivers/video/omap2/dss/dss.h b/drivers/video/omap2/dss/dss.h index 6308fc59fc9e..57a52eecee91 100644 --- a/drivers/video/omap2/dss/dss.h +++ b/drivers/video/omap2/dss/dss.h | |||
@@ -28,7 +28,7 @@ | |||
28 | #endif | 28 | #endif |
29 | 29 | ||
30 | #ifdef DEBUG | 30 | #ifdef DEBUG |
31 | extern unsigned int dss_debug; | 31 | extern bool dss_debug; |
32 | #ifdef DSS_SUBSYS_NAME | 32 | #ifdef DSS_SUBSYS_NAME |
33 | #define DSSDBG(format, ...) \ | 33 | #define DSSDBG(format, ...) \ |
34 | if (dss_debug) \ | 34 | if (dss_debug) \ |
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index 70aa47de7146..68ba1f800082 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c | |||
@@ -43,18 +43,18 @@ | |||
43 | 43 | ||
44 | static char *def_mode; | 44 | static char *def_mode; |
45 | static char *def_vram; | 45 | static char *def_vram; |
46 | static int def_vrfb; | 46 | static bool def_vrfb; |
47 | static int def_rotate; | 47 | static int def_rotate; |
48 | static int def_mirror; | 48 | static bool def_mirror; |
49 | static bool auto_update; | 49 | static bool auto_update; |
50 | static unsigned int auto_update_freq; | 50 | static unsigned int auto_update_freq; |
51 | module_param(auto_update, bool, 0); | 51 | module_param(auto_update, bool, 0); |
52 | module_param(auto_update_freq, uint, 0644); | 52 | module_param(auto_update_freq, uint, 0644); |
53 | 53 | ||
54 | #ifdef DEBUG | 54 | #ifdef DEBUG |
55 | unsigned int omapfb_debug; | 55 | bool omapfb_debug; |
56 | module_param_named(debug, omapfb_debug, bool, 0644); | 56 | module_param_named(debug, omapfb_debug, bool, 0644); |
57 | static unsigned int omapfb_test_pattern; | 57 | static bool omapfb_test_pattern; |
58 | module_param_named(test, omapfb_test_pattern, bool, 0644); | 58 | module_param_named(test, omapfb_test_pattern, bool, 0644); |
59 | #endif | 59 | #endif |
60 | 60 | ||
diff --git a/drivers/video/omap2/omapfb/omapfb.h b/drivers/video/omap2/omapfb/omapfb.h index fdf0edeccf4e..e12d384ea520 100644 --- a/drivers/video/omap2/omapfb/omapfb.h +++ b/drivers/video/omap2/omapfb/omapfb.h | |||
@@ -32,7 +32,7 @@ | |||
32 | #include <video/omapdss.h> | 32 | #include <video/omapdss.h> |
33 | 33 | ||
34 | #ifdef DEBUG | 34 | #ifdef DEBUG |
35 | extern unsigned int omapfb_debug; | 35 | extern bool omapfb_debug; |
36 | #define DBG(format, ...) \ | 36 | #define DBG(format, ...) \ |
37 | do { \ | 37 | do { \ |
38 | if (omapfb_debug) \ | 38 | if (omapfb_debug) \ |
diff --git a/drivers/video/pm2fb.c b/drivers/video/pm2fb.c index dc7bfa91e57a..df31a24a5026 100644 --- a/drivers/video/pm2fb.c +++ b/drivers/video/pm2fb.c | |||
@@ -78,12 +78,12 @@ static char *mode_option __devinitdata; | |||
78 | * these flags allow the user to specify that requests for +ve sync | 78 | * these flags allow the user to specify that requests for +ve sync |
79 | * should be silently turned in -ve sync. | 79 | * should be silently turned in -ve sync. |
80 | */ | 80 | */ |
81 | static int lowhsync; | 81 | static bool lowhsync; |
82 | static int lowvsync; | 82 | static bool lowvsync; |
83 | static int noaccel __devinitdata; | 83 | static bool noaccel __devinitdata; |
84 | /* mtrr option */ | 84 | /* mtrr option */ |
85 | #ifdef CONFIG_MTRR | 85 | #ifdef CONFIG_MTRR |
86 | static int nomtrr __devinitdata; | 86 | static bool nomtrr __devinitdata; |
87 | #endif | 87 | #endif |
88 | 88 | ||
89 | /* | 89 | /* |
diff --git a/drivers/video/pm3fb.c b/drivers/video/pm3fb.c index 6632ee5ecb7e..055e527a8e45 100644 --- a/drivers/video/pm3fb.c +++ b/drivers/video/pm3fb.c | |||
@@ -57,11 +57,11 @@ | |||
57 | */ | 57 | */ |
58 | static int hwcursor = 1; | 58 | static int hwcursor = 1; |
59 | static char *mode_option __devinitdata; | 59 | static char *mode_option __devinitdata; |
60 | static int noaccel __devinitdata; | 60 | static bool noaccel __devinitdata; |
61 | 61 | ||
62 | /* mtrr option */ | 62 | /* mtrr option */ |
63 | #ifdef CONFIG_MTRR | 63 | #ifdef CONFIG_MTRR |
64 | static int nomtrr __devinitdata; | 64 | static bool nomtrr __devinitdata; |
65 | #endif | 65 | #endif |
66 | 66 | ||
67 | /* | 67 | /* |
diff --git a/drivers/video/riva/fbdev.c b/drivers/video/riva/fbdev.c index d8ab7be4fd6b..2f58cf9c813b 100644 --- a/drivers/video/riva/fbdev.c +++ b/drivers/video/riva/fbdev.c | |||
@@ -207,9 +207,9 @@ MODULE_DEVICE_TABLE(pci, rivafb_pci_tbl); | |||
207 | /* command line data, set in rivafb_setup() */ | 207 | /* command line data, set in rivafb_setup() */ |
208 | static int flatpanel __devinitdata = -1; /* Autodetect later */ | 208 | static int flatpanel __devinitdata = -1; /* Autodetect later */ |
209 | static int forceCRTC __devinitdata = -1; | 209 | static int forceCRTC __devinitdata = -1; |
210 | static int noaccel __devinitdata = 0; | 210 | static bool noaccel __devinitdata = 0; |
211 | #ifdef CONFIG_MTRR | 211 | #ifdef CONFIG_MTRR |
212 | static int nomtrr __devinitdata = 0; | 212 | static bool nomtrr __devinitdata = 0; |
213 | #endif | 213 | #endif |
214 | #ifdef CONFIG_PMAC_BACKLIGHT | 214 | #ifdef CONFIG_PMAC_BACKLIGHT |
215 | static int backlight __devinitdata = 1; | 215 | static int backlight __devinitdata = 1; |
@@ -218,7 +218,7 @@ static int backlight __devinitdata = 0; | |||
218 | #endif | 218 | #endif |
219 | 219 | ||
220 | static char *mode_option __devinitdata = NULL; | 220 | static char *mode_option __devinitdata = NULL; |
221 | static int strictmode = 0; | 221 | static bool strictmode = 0; |
222 | 222 | ||
223 | static struct fb_fix_screeninfo __devinitdata rivafb_fix = { | 223 | static struct fb_fix_screeninfo __devinitdata rivafb_fix = { |
224 | .type = FB_TYPE_PACKED_PIXELS, | 224 | .type = FB_TYPE_PACKED_PIXELS, |
diff --git a/drivers/video/smscufx.c b/drivers/video/smscufx.c index 3c22994ea31a..ccbfef5e828f 100644 --- a/drivers/video/smscufx.c +++ b/drivers/video/smscufx.c | |||
@@ -130,8 +130,8 @@ static struct usb_device_id id_table[] = { | |||
130 | MODULE_DEVICE_TABLE(usb, id_table); | 130 | MODULE_DEVICE_TABLE(usb, id_table); |
131 | 131 | ||
132 | /* module options */ | 132 | /* module options */ |
133 | static int console; /* Optionally allow fbcon to consume first framebuffer */ | 133 | static bool console; /* Optionally allow fbcon to consume first framebuffer */ |
134 | static int fb_defio = true; /* Optionally enable fb_defio mmap support */ | 134 | static bool fb_defio = true; /* Optionally enable fb_defio mmap support */ |
135 | 135 | ||
136 | /* ufx keeps a list of urbs for efficient bulk transfers */ | 136 | /* ufx keeps a list of urbs for efficient bulk transfers */ |
137 | static void ufx_urb_completion(struct urb *urb); | 137 | static void ufx_urb_completion(struct urb *urb); |
diff --git a/drivers/video/sstfb.c b/drivers/video/sstfb.c index 2301c275d63a..111fb32e8769 100644 --- a/drivers/video/sstfb.c +++ b/drivers/video/sstfb.c | |||
@@ -93,11 +93,11 @@ | |||
93 | 93 | ||
94 | /* initialized by setup */ | 94 | /* initialized by setup */ |
95 | 95 | ||
96 | static int vgapass; /* enable VGA passthrough cable */ | 96 | static bool vgapass; /* enable VGA passthrough cable */ |
97 | static int mem; /* mem size in MB, 0 = autodetect */ | 97 | static int mem; /* mem size in MB, 0 = autodetect */ |
98 | static int clipping = 1; /* use clipping (slower, safer) */ | 98 | static bool clipping = 1; /* use clipping (slower, safer) */ |
99 | static int gfxclk; /* force FBI freq in Mhz . Dangerous */ | 99 | static int gfxclk; /* force FBI freq in Mhz . Dangerous */ |
100 | static int slowpci; /* slow PCI settings */ | 100 | static bool slowpci; /* slow PCI settings */ |
101 | 101 | ||
102 | /* | 102 | /* |
103 | Possible default video modes: 800x600@60, 640x480@75, 1024x768@76, 640x480@60 | 103 | Possible default video modes: 800x600@60, 640x480@75, 1024x768@76, 640x480@60 |
diff --git a/drivers/video/tdfxfb.c b/drivers/video/tdfxfb.c index a99b994c9b6b..e026724a3a56 100644 --- a/drivers/video/tdfxfb.c +++ b/drivers/video/tdfxfb.c | |||
@@ -169,7 +169,7 @@ static int nowrap = 1; /* not implemented (yet) */ | |||
169 | static int hwcursor = 1; | 169 | static int hwcursor = 1; |
170 | static char *mode_option __devinitdata; | 170 | static char *mode_option __devinitdata; |
171 | /* mtrr option */ | 171 | /* mtrr option */ |
172 | static int nomtrr __devinitdata; | 172 | static bool nomtrr __devinitdata; |
173 | 173 | ||
174 | /* ------------------------------------------------------------------------- | 174 | /* ------------------------------------------------------------------------- |
175 | * Hardware-specific funcions | 175 | * Hardware-specific funcions |
diff --git a/drivers/video/udlfb.c b/drivers/video/udlfb.c index 1f868d0187a2..a19773149bd7 100644 --- a/drivers/video/udlfb.c +++ b/drivers/video/udlfb.c | |||
@@ -69,9 +69,9 @@ static struct usb_device_id id_table[] = { | |||
69 | MODULE_DEVICE_TABLE(usb, id_table); | 69 | MODULE_DEVICE_TABLE(usb, id_table); |
70 | 70 | ||
71 | /* module options */ | 71 | /* module options */ |
72 | static int console = 1; /* Allow fbcon to open framebuffer */ | 72 | static bool console = 1; /* Allow fbcon to open framebuffer */ |
73 | static int fb_defio = 1; /* Detect mmap writes using page faults */ | 73 | static bool fb_defio = 1; /* Detect mmap writes using page faults */ |
74 | static int shadow = 1; /* Optionally disable shadow framebuffer */ | 74 | static bool shadow = 1; /* Optionally disable shadow framebuffer */ |
75 | 75 | ||
76 | /* dlfb keeps a list of urbs for efficient bulk transfers */ | 76 | /* dlfb keeps a list of urbs for efficient bulk transfers */ |
77 | static void dlfb_urb_completion(struct urb *urb); | 77 | static void dlfb_urb_completion(struct urb *urb); |
diff --git a/drivers/video/uvesafb.c b/drivers/video/uvesafb.c index 7f8472cc993b..e7f69ef572dc 100644 --- a/drivers/video/uvesafb.c +++ b/drivers/video/uvesafb.c | |||
@@ -44,11 +44,11 @@ static struct fb_fix_screeninfo uvesafb_fix __devinitdata = { | |||
44 | }; | 44 | }; |
45 | 45 | ||
46 | static int mtrr __devinitdata = 3; /* enable mtrr by default */ | 46 | static int mtrr __devinitdata = 3; /* enable mtrr by default */ |
47 | static int blank = 1; /* enable blanking by default */ | 47 | static bool blank = 1; /* enable blanking by default */ |
48 | static int ypan = 1; /* 0: scroll, 1: ypan, 2: ywrap */ | 48 | static int ypan = 1; /* 0: scroll, 1: ypan, 2: ywrap */ |
49 | static bool pmi_setpal __devinitdata = true; /* use PMI for palette changes */ | 49 | static bool pmi_setpal __devinitdata = true; /* use PMI for palette changes */ |
50 | static int nocrtc __devinitdata; /* ignore CRTC settings */ | 50 | static bool nocrtc __devinitdata; /* ignore CRTC settings */ |
51 | static int noedid __devinitdata; /* don't try DDC transfers */ | 51 | static bool noedid __devinitdata; /* don't try DDC transfers */ |
52 | static int vram_remap __devinitdata; /* set amt. of memory to be used */ | 52 | static int vram_remap __devinitdata; /* set amt. of memory to be used */ |
53 | static int vram_total __devinitdata; /* set total amount of memory */ | 53 | static int vram_total __devinitdata; /* set total amount of memory */ |
54 | static u16 maxclk __devinitdata; /* maximum pixel clock */ | 54 | static u16 maxclk __devinitdata; /* maximum pixel clock */ |
diff --git a/drivers/video/vfb.c b/drivers/video/vfb.c index bf2f78065cf9..501a922aa9dc 100644 --- a/drivers/video/vfb.c +++ b/drivers/video/vfb.c | |||
@@ -110,7 +110,7 @@ static struct fb_fix_screeninfo vfb_fix __devinitdata = { | |||
110 | .accel = FB_ACCEL_NONE, | 110 | .accel = FB_ACCEL_NONE, |
111 | }; | 111 | }; |
112 | 112 | ||
113 | static int vfb_enable __initdata = 0; /* disabled by default */ | 113 | static bool vfb_enable __initdata = 0; /* disabled by default */ |
114 | module_param(vfb_enable, bool, 0); | 114 | module_param(vfb_enable, bool, 0); |
115 | 115 | ||
116 | static int vfb_check_var(struct fb_var_screeninfo *var, | 116 | static int vfb_check_var(struct fb_var_screeninfo *var, |