aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-01-12 18:02:20 -0500
committerRusty Russell <rusty@rustcorp.com.au>2012-01-12 18:02:20 -0500
commit90ab5ee94171b3e28de6bb42ee30b527014e0be7 (patch)
treefcf89889f6e881f2b231d3d20287c08174ce4b54 /drivers/video
parent476bc0015bf09dad39d36a8b19f76f0c181d1ec9 (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.c4
-rw-r--r--drivers/video/aty/radeon_base.c18
-rw-r--r--drivers/video/cirrusfb.c2
-rw-r--r--drivers/video/hgafb.c2
-rw-r--r--drivers/video/intelfb/intelfbdrv.c16
-rw-r--r--drivers/video/logo/logo.c2
-rw-r--r--drivers/video/neofb.c10
-rw-r--r--drivers/video/omap/omapfb_main.c4
-rw-r--r--drivers/video/omap2/dss/core.c2
-rw-r--r--drivers/video/omap2/dss/dsi.c4
-rw-r--r--drivers/video/omap2/dss/dss.h2
-rw-r--r--drivers/video/omap2/omapfb/omapfb-main.c8
-rw-r--r--drivers/video/omap2/omapfb/omapfb.h2
-rw-r--r--drivers/video/pm2fb.c8
-rw-r--r--drivers/video/pm3fb.c4
-rw-r--r--drivers/video/riva/fbdev.c6
-rw-r--r--drivers/video/smscufx.c4
-rw-r--r--drivers/video/sstfb.c6
-rw-r--r--drivers/video/tdfxfb.c2
-rw-r--r--drivers/video/udlfb.c6
-rw-r--r--drivers/video/uvesafb.c6
-rw-r--r--drivers/video/vfb.c2
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
304static int noaccel; 304static bool noaccel;
305#ifdef CONFIG_MTRR 305#ifdef CONFIG_MTRR
306static int nomtrr; 306static bool nomtrr;
307#endif 307#endif
308static int vram; 308static int vram;
309static int pll; 309static 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
264static char *mode_option; 264static char *mode_option;
265static char *monitor_layout; 265static char *monitor_layout;
266static int noaccel = 0; 266static bool noaccel = 0;
267static int default_dynclk = -2; 267static int default_dynclk = -2;
268static int nomodeset = 0; 268static bool nomodeset = 0;
269static int ignore_edid = 0; 269static bool ignore_edid = 0;
270static int mirror = 0; 270static bool mirror = 0;
271static int panel_yres = 0; 271static int panel_yres = 0;
272static int force_dfp = 0; 272static bool force_dfp = 0;
273static int force_measure_pll = 0; 273static bool force_measure_pll = 0;
274#ifdef CONFIG_MTRR 274#ifdef CONFIG_MTRR
275static int nomtrr = 0; 275static bool nomtrr = 0;
276#endif 276#endif
277static int force_sleep; 277static bool force_sleep;
278static int ignore_devlist; 278static bool ignore_devlist;
279#ifdef CONFIG_PMAC_BACKLIGHT 279#ifdef CONFIG_PMAC_BACKLIGHT
280static int backlight = 1; 280static 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
353static int noaccel __devinitdata; 353static bool noaccel __devinitdata;
354static char *mode_option __devinitdata = "640x480@60"; 354static 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. */
134static int release_io_port = 0; 134static int release_io_port = 0;
135static int release_io_ports = 0; 135static int release_io_ports = 0;
136static int nologo = 0; 136static 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
230MODULE_LICENSE("Dual BSD/GPL"); 230MODULE_LICENSE("Dual BSD/GPL");
231MODULE_DEVICE_TABLE(pci, intelfb_pci_table); 231MODULE_DEVICE_TABLE(pci, intelfb_pci_table);
232 232
233static int accel = 1; 233static bool accel = 1;
234static int vram = 4; 234static int vram = 4;
235static int hwcursor = 0; 235static bool hwcursor = 0;
236static int mtrr = 1; 236static bool mtrr = 1;
237static int fixed = 0; 237static bool fixed = 0;
238static int noinit = 0; 238static bool noinit = 0;
239static int noregister = 0; 239static bool noregister = 0;
240static int probeonly = 0; 240static bool probeonly = 0;
241static int idonly = 0; 241static bool idonly = 0;
242static int bailearly = 0; 242static int bailearly = 0;
243static int voffset = 48; 243static int voffset = 48;
244static char *mode = NULL; 244static 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
24static int nologo; 24static bool nologo;
25module_param(nologo, bool, 0); 25module_param(nologo, bool, 0);
26MODULE_PARM_DESC(nologo, "Disables startup logo"); 26MODULE_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
87static int internal; 87static bool internal;
88static int external; 88static bool external;
89static int libretto; 89static bool libretto;
90static int nostretch; 90static bool nostretch;
91static int nopciburst; 91static bool nopciburst;
92static char *mode_option __devinitdata = NULL; 92static 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;
47static unsigned int def_mirror; 47static unsigned int def_mirror;
48 48
49#ifdef CONFIG_FB_OMAP_MANUAL_UPDATE 49#ifdef CONFIG_FB_OMAP_MANUAL_UPDATE
50static int manual_update = 1; 50static bool manual_update = 1;
51#else 51#else
52static int manual_update; 52static bool manual_update;
53#endif 53#endif
54 54
55static struct platform_device *fbdev_pdev; 55static 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);
50MODULE_PARM_DESC(def_disp, "default display name"); 50MODULE_PARM_DESC(def_disp, "default display name");
51 51
52#ifdef DEBUG 52#ifdef DEBUG
53unsigned int dss_debug; 53bool dss_debug;
54module_param_named(debug, dss_debug, bool, 0644); 54module_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 {
340static struct platform_device *dsi_pdev_map[MAX_NUM_DSI]; 340static struct platform_device *dsi_pdev_map[MAX_NUM_DSI];
341 341
342#ifdef DEBUG 342#ifdef DEBUG
343static unsigned int dsi_perf; 343static bool dsi_perf;
344module_param_named(dsi_perf, dsi_perf, bool, 0644); 344module_param(dsi_perf, bool, 0644);
345#endif 345#endif
346 346
347static inline struct dsi_data *dsi_get_dsidrv_data(struct platform_device *dsidev) 347static 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
31extern unsigned int dss_debug; 31extern 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
44static char *def_mode; 44static char *def_mode;
45static char *def_vram; 45static char *def_vram;
46static int def_vrfb; 46static bool def_vrfb;
47static int def_rotate; 47static int def_rotate;
48static int def_mirror; 48static bool def_mirror;
49static bool auto_update; 49static bool auto_update;
50static unsigned int auto_update_freq; 50static unsigned int auto_update_freq;
51module_param(auto_update, bool, 0); 51module_param(auto_update, bool, 0);
52module_param(auto_update_freq, uint, 0644); 52module_param(auto_update_freq, uint, 0644);
53 53
54#ifdef DEBUG 54#ifdef DEBUG
55unsigned int omapfb_debug; 55bool omapfb_debug;
56module_param_named(debug, omapfb_debug, bool, 0644); 56module_param_named(debug, omapfb_debug, bool, 0644);
57static unsigned int omapfb_test_pattern; 57static bool omapfb_test_pattern;
58module_param_named(test, omapfb_test_pattern, bool, 0644); 58module_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
35extern unsigned int omapfb_debug; 35extern 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 */
81static int lowhsync; 81static bool lowhsync;
82static int lowvsync; 82static bool lowvsync;
83static int noaccel __devinitdata; 83static bool noaccel __devinitdata;
84/* mtrr option */ 84/* mtrr option */
85#ifdef CONFIG_MTRR 85#ifdef CONFIG_MTRR
86static int nomtrr __devinitdata; 86static 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 */
58static int hwcursor = 1; 58static int hwcursor = 1;
59static char *mode_option __devinitdata; 59static char *mode_option __devinitdata;
60static int noaccel __devinitdata; 60static bool noaccel __devinitdata;
61 61
62/* mtrr option */ 62/* mtrr option */
63#ifdef CONFIG_MTRR 63#ifdef CONFIG_MTRR
64static int nomtrr __devinitdata; 64static 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() */
208static int flatpanel __devinitdata = -1; /* Autodetect later */ 208static int flatpanel __devinitdata = -1; /* Autodetect later */
209static int forceCRTC __devinitdata = -1; 209static int forceCRTC __devinitdata = -1;
210static int noaccel __devinitdata = 0; 210static bool noaccel __devinitdata = 0;
211#ifdef CONFIG_MTRR 211#ifdef CONFIG_MTRR
212static int nomtrr __devinitdata = 0; 212static bool nomtrr __devinitdata = 0;
213#endif 213#endif
214#ifdef CONFIG_PMAC_BACKLIGHT 214#ifdef CONFIG_PMAC_BACKLIGHT
215static int backlight __devinitdata = 1; 215static int backlight __devinitdata = 1;
@@ -218,7 +218,7 @@ static int backlight __devinitdata = 0;
218#endif 218#endif
219 219
220static char *mode_option __devinitdata = NULL; 220static char *mode_option __devinitdata = NULL;
221static int strictmode = 0; 221static bool strictmode = 0;
222 222
223static struct fb_fix_screeninfo __devinitdata rivafb_fix = { 223static 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[] = {
130MODULE_DEVICE_TABLE(usb, id_table); 130MODULE_DEVICE_TABLE(usb, id_table);
131 131
132/* module options */ 132/* module options */
133static int console; /* Optionally allow fbcon to consume first framebuffer */ 133static bool console; /* Optionally allow fbcon to consume first framebuffer */
134static int fb_defio = true; /* Optionally enable fb_defio mmap support */ 134static 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 */
137static void ufx_urb_completion(struct urb *urb); 137static 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
96static int vgapass; /* enable VGA passthrough cable */ 96static bool vgapass; /* enable VGA passthrough cable */
97static int mem; /* mem size in MB, 0 = autodetect */ 97static int mem; /* mem size in MB, 0 = autodetect */
98static int clipping = 1; /* use clipping (slower, safer) */ 98static bool clipping = 1; /* use clipping (slower, safer) */
99static int gfxclk; /* force FBI freq in Mhz . Dangerous */ 99static int gfxclk; /* force FBI freq in Mhz . Dangerous */
100static int slowpci; /* slow PCI settings */ 100static 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) */
169static int hwcursor = 1; 169static int hwcursor = 1;
170static char *mode_option __devinitdata; 170static char *mode_option __devinitdata;
171/* mtrr option */ 171/* mtrr option */
172static int nomtrr __devinitdata; 172static 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[] = {
69MODULE_DEVICE_TABLE(usb, id_table); 69MODULE_DEVICE_TABLE(usb, id_table);
70 70
71/* module options */ 71/* module options */
72static int console = 1; /* Allow fbcon to open framebuffer */ 72static bool console = 1; /* Allow fbcon to open framebuffer */
73static int fb_defio = 1; /* Detect mmap writes using page faults */ 73static bool fb_defio = 1; /* Detect mmap writes using page faults */
74static int shadow = 1; /* Optionally disable shadow framebuffer */ 74static 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 */
77static void dlfb_urb_completion(struct urb *urb); 77static 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
46static int mtrr __devinitdata = 3; /* enable mtrr by default */ 46static int mtrr __devinitdata = 3; /* enable mtrr by default */
47static int blank = 1; /* enable blanking by default */ 47static bool blank = 1; /* enable blanking by default */
48static int ypan = 1; /* 0: scroll, 1: ypan, 2: ywrap */ 48static int ypan = 1; /* 0: scroll, 1: ypan, 2: ywrap */
49static bool pmi_setpal __devinitdata = true; /* use PMI for palette changes */ 49static bool pmi_setpal __devinitdata = true; /* use PMI for palette changes */
50static int nocrtc __devinitdata; /* ignore CRTC settings */ 50static bool nocrtc __devinitdata; /* ignore CRTC settings */
51static int noedid __devinitdata; /* don't try DDC transfers */ 51static bool noedid __devinitdata; /* don't try DDC transfers */
52static int vram_remap __devinitdata; /* set amt. of memory to be used */ 52static int vram_remap __devinitdata; /* set amt. of memory to be used */
53static int vram_total __devinitdata; /* set total amount of memory */ 53static int vram_total __devinitdata; /* set total amount of memory */
54static u16 maxclk __devinitdata; /* maximum pixel clock */ 54static 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
113static int vfb_enable __initdata = 0; /* disabled by default */ 113static bool vfb_enable __initdata = 0; /* disabled by default */
114module_param(vfb_enable, bool, 0); 114module_param(vfb_enable, bool, 0);
115 115
116static int vfb_check_var(struct fb_var_screeninfo *var, 116static int vfb_check_var(struct fb_var_screeninfo *var,