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/staging | |
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/staging')
-rw-r--r-- | drivers/staging/comedi/comedi_fops.c | 2 | ||||
-rw-r--r-- | drivers/staging/comedi/comedi_fops.h | 3 | ||||
-rw-r--r-- | drivers/staging/media/go7007/snd-go7007.c | 2 | ||||
-rw-r--r-- | drivers/staging/media/lirc/lirc_bt829.c | 2 | ||||
-rw-r--r-- | drivers/staging/media/lirc/lirc_igorplugusb.c | 4 | ||||
-rw-r--r-- | drivers/staging/media/lirc/lirc_parallel.c | 4 | ||||
-rw-r--r-- | drivers/staging/media/lirc/lirc_serial.c | 10 | ||||
-rw-r--r-- | drivers/staging/media/lirc/lirc_sir.c | 2 | ||||
-rw-r--r-- | drivers/staging/media/lirc/lirc_zilog.c | 4 | ||||
-rw-r--r-- | drivers/staging/quatech_usb2/quatech_usb2.c | 2 | ||||
-rw-r--r-- | drivers/staging/serqt_usb2/serqt_usb2.c | 2 | ||||
-rw-r--r-- | drivers/staging/speakup/speakup.h | 2 | ||||
-rw-r--r-- | drivers/staging/speakup/synth.c | 2 | ||||
-rw-r--r-- | drivers/staging/vme/bridges/vme_tsi148.c | 2 |
14 files changed, 22 insertions, 21 deletions
diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c index 0d18d80bcd2..9bcf87ae4c0 100644 --- a/drivers/staging/comedi/comedi_fops.c +++ b/drivers/staging/comedi/comedi_fops.c | |||
@@ -61,7 +61,7 @@ EXPORT_SYMBOL(comedi_debug); | |||
61 | module_param(comedi_debug, int, 0644); | 61 | module_param(comedi_debug, int, 0644); |
62 | #endif | 62 | #endif |
63 | 63 | ||
64 | int comedi_autoconfig = 1; | 64 | bool comedi_autoconfig = 1; |
65 | module_param(comedi_autoconfig, bool, 0444); | 65 | module_param(comedi_autoconfig, bool, 0444); |
66 | 66 | ||
67 | static int comedi_num_legacy_minors; | 67 | static int comedi_num_legacy_minors; |
diff --git a/drivers/staging/comedi/comedi_fops.h b/drivers/staging/comedi/comedi_fops.h index da4b4f5553f..006cf14c577 100644 --- a/drivers/staging/comedi/comedi_fops.h +++ b/drivers/staging/comedi/comedi_fops.h | |||
@@ -1,10 +1,11 @@ | |||
1 | 1 | ||
2 | #ifndef _COMEDI_FOPS_H | 2 | #ifndef _COMEDI_FOPS_H |
3 | #define _COMEDI_FOPS_H | 3 | #define _COMEDI_FOPS_H |
4 | #include <linux/types.h> | ||
4 | 5 | ||
5 | extern struct class *comedi_class; | 6 | extern struct class *comedi_class; |
6 | extern const struct file_operations comedi_fops; | 7 | extern const struct file_operations comedi_fops; |
7 | extern int comedi_autoconfig; | 8 | extern bool comedi_autoconfig; |
8 | extern struct comedi_driver *comedi_drivers; | 9 | extern struct comedi_driver *comedi_drivers; |
9 | 10 | ||
10 | #endif /* _COMEDI_FOPS_H */ | 11 | #endif /* _COMEDI_FOPS_H */ |
diff --git a/drivers/staging/media/go7007/snd-go7007.c b/drivers/staging/media/go7007/snd-go7007.c index deac938d850..d071c838ac2 100644 --- a/drivers/staging/media/go7007/snd-go7007.c +++ b/drivers/staging/media/go7007/snd-go7007.c | |||
@@ -38,7 +38,7 @@ | |||
38 | 38 | ||
39 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; | 39 | static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; |
40 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; | 40 | static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; |
41 | static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 41 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
42 | 42 | ||
43 | module_param_array(index, int, NULL, 0444); | 43 | module_param_array(index, int, NULL, 0444); |
44 | module_param_array(id, charp, NULL, 0444); | 44 | module_param_array(id, charp, NULL, 0444); |
diff --git a/drivers/staging/media/lirc/lirc_bt829.c b/drivers/staging/media/lirc/lirc_bt829.c index c5a0d27a02d..4d20e9f7411 100644 --- a/drivers/staging/media/lirc/lirc_bt829.c +++ b/drivers/staging/media/lirc/lirc_bt829.c | |||
@@ -53,7 +53,7 @@ static unsigned char do_get_bits(void); | |||
53 | 53 | ||
54 | #define DRIVER_NAME "lirc_bt829" | 54 | #define DRIVER_NAME "lirc_bt829" |
55 | 55 | ||
56 | static int debug; | 56 | static bool debug; |
57 | #define dprintk(fmt, args...) \ | 57 | #define dprintk(fmt, args...) \ |
58 | do { \ | 58 | do { \ |
59 | if (debug) \ | 59 | if (debug) \ |
diff --git a/drivers/staging/media/lirc/lirc_igorplugusb.c b/drivers/staging/media/lirc/lirc_igorplugusb.c index 6cd4cd67a1d..7a250177667 100644 --- a/drivers/staging/media/lirc/lirc_igorplugusb.c +++ b/drivers/staging/media/lirc/lirc_igorplugusb.c | |||
@@ -62,9 +62,9 @@ | |||
62 | 62 | ||
63 | /* debugging support */ | 63 | /* debugging support */ |
64 | #ifdef CONFIG_USB_DEBUG | 64 | #ifdef CONFIG_USB_DEBUG |
65 | static int debug = 1; | 65 | static bool debug = 1; |
66 | #else | 66 | #else |
67 | static int debug; | 67 | static bool debug; |
68 | #endif | 68 | #endif |
69 | 69 | ||
70 | #define dprintk(fmt, args...) \ | 70 | #define dprintk(fmt, args...) \ |
diff --git a/drivers/staging/media/lirc/lirc_parallel.c b/drivers/staging/media/lirc/lirc_parallel.c index 02b07a6c177..dd2bca7b56f 100644 --- a/drivers/staging/media/lirc/lirc_parallel.c +++ b/drivers/staging/media/lirc/lirc_parallel.c | |||
@@ -63,8 +63,8 @@ | |||
63 | 63 | ||
64 | /*** Global Variables ***/ | 64 | /*** Global Variables ***/ |
65 | 65 | ||
66 | static int debug; | 66 | static bool debug; |
67 | static int check_pselecd; | 67 | static bool check_pselecd; |
68 | 68 | ||
69 | unsigned int irq = LIRC_IRQ; | 69 | unsigned int irq = LIRC_IRQ; |
70 | unsigned int io = LIRC_PORT; | 70 | unsigned int io = LIRC_PORT; |
diff --git a/drivers/staging/media/lirc/lirc_serial.c b/drivers/staging/media/lirc/lirc_serial.c index 8a060a8a722..2aac67c9828 100644 --- a/drivers/staging/media/lirc/lirc_serial.c +++ b/drivers/staging/media/lirc/lirc_serial.c | |||
@@ -107,13 +107,13 @@ struct lirc_serial { | |||
107 | static int type; | 107 | static int type; |
108 | static int io; | 108 | static int io; |
109 | static int irq; | 109 | static int irq; |
110 | static int iommap; | 110 | static bool iommap; |
111 | static int ioshift; | 111 | static int ioshift; |
112 | static int softcarrier = 1; | 112 | static bool softcarrier = 1; |
113 | static int share_irq; | 113 | static bool share_irq; |
114 | static int debug; | 114 | static bool debug; |
115 | static int sense = -1; /* -1 = auto, 0 = active high, 1 = active low */ | 115 | static int sense = -1; /* -1 = auto, 0 = active high, 1 = active low */ |
116 | static int txsense; /* 0 = active high, 1 = active low */ | 116 | static bool txsense; /* 0 = active high, 1 = active low */ |
117 | 117 | ||
118 | #define dprintk(fmt, args...) \ | 118 | #define dprintk(fmt, args...) \ |
119 | do { \ | 119 | do { \ |
diff --git a/drivers/staging/media/lirc/lirc_sir.c b/drivers/staging/media/lirc/lirc_sir.c index 6903d3992ec..c94382b917a 100644 --- a/drivers/staging/media/lirc/lirc_sir.c +++ b/drivers/staging/media/lirc/lirc_sir.c | |||
@@ -173,7 +173,7 @@ static DEFINE_SPINLOCK(hardware_lock); | |||
173 | static int rx_buf[RBUF_LEN]; | 173 | static int rx_buf[RBUF_LEN]; |
174 | static unsigned int rx_tail, rx_head; | 174 | static unsigned int rx_tail, rx_head; |
175 | 175 | ||
176 | static int debug; | 176 | static bool debug; |
177 | #define dprintk(fmt, args...) \ | 177 | #define dprintk(fmt, args...) \ |
178 | do { \ | 178 | do { \ |
179 | if (debug) \ | 179 | if (debug) \ |
diff --git a/drivers/staging/media/lirc/lirc_zilog.c b/drivers/staging/media/lirc/lirc_zilog.c index 0302d82a12f..76ea4a8f2c7 100644 --- a/drivers/staging/media/lirc/lirc_zilog.c +++ b/drivers/staging/media/lirc/lirc_zilog.c | |||
@@ -155,8 +155,8 @@ static struct mutex tx_data_lock; | |||
155 | #define zilog_info(s, args...) printk(KERN_INFO KBUILD_MODNAME ": " s, ## args) | 155 | #define zilog_info(s, args...) printk(KERN_INFO KBUILD_MODNAME ": " s, ## args) |
156 | 156 | ||
157 | /* module parameters */ | 157 | /* module parameters */ |
158 | static int debug; /* debug output */ | 158 | static bool debug; /* debug output */ |
159 | static int tx_only; /* only handle the IR Tx function */ | 159 | static bool tx_only; /* only handle the IR Tx function */ |
160 | static int minor = -1; /* minor number */ | 160 | static int minor = -1; /* minor number */ |
161 | 161 | ||
162 | #define dprintk(fmt, args...) \ | 162 | #define dprintk(fmt, args...) \ |
diff --git a/drivers/staging/quatech_usb2/quatech_usb2.c b/drivers/staging/quatech_usb2/quatech_usb2.c index 02fafecd477..897a3a99c79 100644 --- a/drivers/staging/quatech_usb2/quatech_usb2.c +++ b/drivers/staging/quatech_usb2/quatech_usb2.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <linux/usb/serial.h> | 16 | #include <linux/usb/serial.h> |
17 | #include <linux/uaccess.h> | 17 | #include <linux/uaccess.h> |
18 | 18 | ||
19 | static int debug; | 19 | static bool debug; |
20 | 20 | ||
21 | /* Version Information */ | 21 | /* Version Information */ |
22 | #define DRIVER_VERSION "v2.00" | 22 | #define DRIVER_VERSION "v2.00" |
diff --git a/drivers/staging/serqt_usb2/serqt_usb2.c b/drivers/staging/serqt_usb2/serqt_usb2.c index c44e41af288..1c5780f1571 100644 --- a/drivers/staging/serqt_usb2/serqt_usb2.c +++ b/drivers/staging/serqt_usb2/serqt_usb2.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <linux/usb/serial.h> | 16 | #include <linux/usb/serial.h> |
17 | #include <linux/uaccess.h> | 17 | #include <linux/uaccess.h> |
18 | 18 | ||
19 | static int debug; | 19 | static bool debug; |
20 | 20 | ||
21 | /* Version Information */ | 21 | /* Version Information */ |
22 | #define DRIVER_VERSION "v2.14" | 22 | #define DRIVER_VERSION "v2.14" |
diff --git a/drivers/staging/speakup/speakup.h b/drivers/staging/speakup/speakup.h index 412b87947f6..e66579e6147 100644 --- a/drivers/staging/speakup/speakup.h +++ b/drivers/staging/speakup/speakup.h | |||
@@ -116,7 +116,7 @@ extern int bleep_time, bell_pos; | |||
116 | extern int spell_delay, key_echo; | 116 | extern int spell_delay, key_echo; |
117 | extern short punc_mask; | 117 | extern short punc_mask; |
118 | extern short pitch_shift, synth_flags; | 118 | extern short pitch_shift, synth_flags; |
119 | extern int quiet_boot; | 119 | extern bool quiet_boot; |
120 | extern char *synth_name; | 120 | extern char *synth_name; |
121 | extern struct bleep unprocessed_sound; | 121 | extern struct bleep unprocessed_sound; |
122 | 122 | ||
diff --git a/drivers/staging/speakup/synth.c b/drivers/staging/speakup/synth.c index c241074a4b5..2222d6919ef 100644 --- a/drivers/staging/speakup/synth.c +++ b/drivers/staging/speakup/synth.c | |||
@@ -22,7 +22,7 @@ static struct spk_synth *synths[MAXSYNTHS]; | |||
22 | struct spk_synth *synth; | 22 | struct spk_synth *synth; |
23 | char pitch_buff[32] = ""; | 23 | char pitch_buff[32] = ""; |
24 | static int module_status; | 24 | static int module_status; |
25 | int quiet_boot; | 25 | bool quiet_boot; |
26 | 26 | ||
27 | struct speakup_info_t speakup_info = { | 27 | struct speakup_info_t speakup_info = { |
28 | .spinlock = __SPIN_LOCK_UNLOCKED(speakup_info.spinlock), | 28 | .spinlock = __SPIN_LOCK_UNLOCKED(speakup_info.spinlock), |
diff --git a/drivers/staging/vme/bridges/vme_tsi148.c b/drivers/staging/vme/bridges/vme_tsi148.c index 08a449b4abf..f50582169b2 100644 --- a/drivers/staging/vme/bridges/vme_tsi148.c +++ b/drivers/staging/vme/bridges/vme_tsi148.c | |||
@@ -41,7 +41,7 @@ static void __exit tsi148_exit(void); | |||
41 | 41 | ||
42 | 42 | ||
43 | /* Module parameter */ | 43 | /* Module parameter */ |
44 | static int err_chk; | 44 | static bool err_chk; |
45 | static int geoid; | 45 | static int geoid; |
46 | 46 | ||
47 | static const char driver_name[] = "vme_tsi148"; | 47 | static const char driver_name[] = "vme_tsi148"; |