diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-14 15:32:16 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-14 15:32:16 -0500 |
commit | 0a80939b3e6af4b0dc93bf88ec02fd7e90a16f1b (patch) | |
tree | a112335f2b2b2a51e90531c6c67e8a3b54dcf0ef /drivers/usb | |
parent | 0b48d42235caf627121f440b57d376f48a9af8b6 (diff) | |
parent | 72db395ffadb1d33233fd123c2bf87ba0198c6c1 (diff) |
Merge tag 'for-linus' of git://github.com/rustyrussell/linux
Autogenerated GPG tag for Rusty D1ADB8F1: 15EE 8D6C AB0E 7F0C F999 BFCB D920 0E6C D1AD B8F1
* tag 'for-linus' of git://github.com/rustyrussell/linux:
module_param: check that bool parameters really are bool.
intelfbdrv.c: bailearly is an int module_param
paride/pcd: fix bool verbose module parameter.
module_param: make bool parameters really bool (drivers & misc)
module_param: make bool parameters really bool (arch)
module_param: make bool parameters really bool (core code)
kernel/async: remove redundant declaration.
printk: fix unnecessary module_param_name.
lirc_parallel: fix module parameter description.
module_param: avoid bool abuse, add bint for special cases.
module_param: check type correctness for module_param_array
modpost: use linker section to generate table.
modpost: use a table rather than a giant if/else statement.
modules: sysfs - export: taint, coresize, initsize
kernel/params: replace DEBUGP with pr_debug
module: replace DEBUGP with pr_debug
module: struct module_ref should contains long fields
module: Fix performance regression on modules with large symbol tables
module: Add comments describing how the "strmap" logic works
Fix up conflicts in scripts/mod/file2alias.c due to the new linker-
generated table approach to adding __mod_*_device_table entries. The
ARM sa11x0 mcp bus needed to be converted to that too.
Diffstat (limited to 'drivers/usb')
64 files changed, 89 insertions, 89 deletions
diff --git a/drivers/usb/atm/speedtch.c b/drivers/usb/atm/speedtch.c index b42092e1f164..98dd9e49b684 100644 --- a/drivers/usb/atm/speedtch.c +++ b/drivers/usb/atm/speedtch.c | |||
@@ -73,9 +73,9 @@ static const char speedtch_driver_name[] = "speedtch"; | |||
73 | #define DEFAULT_SW_BUFFERING 0 | 73 | #define DEFAULT_SW_BUFFERING 0 |
74 | 74 | ||
75 | static unsigned int altsetting = 0; /* zero means: use the default */ | 75 | static unsigned int altsetting = 0; /* zero means: use the default */ |
76 | static int dl_512_first = DEFAULT_DL_512_FIRST; | 76 | static bool dl_512_first = DEFAULT_DL_512_FIRST; |
77 | static int enable_isoc = DEFAULT_ENABLE_ISOC; | 77 | static bool enable_isoc = DEFAULT_ENABLE_ISOC; |
78 | static int sw_buffering = DEFAULT_SW_BUFFERING; | 78 | static bool sw_buffering = DEFAULT_SW_BUFFERING; |
79 | 79 | ||
80 | #define DEFAULT_B_MAX_DSL 8128 | 80 | #define DEFAULT_B_MAX_DSL 8128 |
81 | #define DEFAULT_MODEM_MODE 11 | 81 | #define DEFAULT_MODEM_MODE 11 |
diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c index 00f171a7a8a0..01ea5d7421d4 100644 --- a/drivers/usb/atm/ueagle-atm.c +++ b/drivers/usb/atm/ueagle-atm.c | |||
@@ -542,7 +542,7 @@ static int modem_index; | |||
542 | static unsigned int debug; | 542 | static unsigned int debug; |
543 | static unsigned int altsetting[NB_MODEM] = { | 543 | static unsigned int altsetting[NB_MODEM] = { |
544 | [0 ... (NB_MODEM - 1)] = FASTEST_ISO_INTF}; | 544 | [0 ... (NB_MODEM - 1)] = FASTEST_ISO_INTF}; |
545 | static int sync_wait[NB_MODEM]; | 545 | static bool sync_wait[NB_MODEM]; |
546 | static char *cmv_file[NB_MODEM]; | 546 | static char *cmv_file[NB_MODEM]; |
547 | static int annex[NB_MODEM]; | 547 | static int annex[NB_MODEM]; |
548 | 548 | ||
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c index 3af5e2dd1d82..8df4b76465ac 100644 --- a/drivers/usb/core/devio.c +++ b/drivers/usb/core/devio.c | |||
@@ -93,7 +93,7 @@ struct async { | |||
93 | u8 bulk_status; | 93 | u8 bulk_status; |
94 | }; | 94 | }; |
95 | 95 | ||
96 | static int usbfs_snoop; | 96 | static bool usbfs_snoop; |
97 | module_param(usbfs_snoop, bool, S_IRUGO | S_IWUSR); | 97 | module_param(usbfs_snoop, bool, S_IRUGO | S_IWUSR); |
98 | MODULE_PARM_DESC(usbfs_snoop, "true to log all usbfs traffic"); | 98 | MODULE_PARM_DESC(usbfs_snoop, "true to log all usbfs traffic"); |
99 | 99 | ||
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 79d339e2e700..a0613d8f9be7 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c | |||
@@ -102,7 +102,7 @@ static DECLARE_WAIT_QUEUE_HEAD(khubd_wait); | |||
102 | static struct task_struct *khubd_task; | 102 | static struct task_struct *khubd_task; |
103 | 103 | ||
104 | /* cycle leds on hubs that aren't blinking for attention */ | 104 | /* cycle leds on hubs that aren't blinking for attention */ |
105 | static int blinkenlights = 0; | 105 | static bool blinkenlights = 0; |
106 | module_param (blinkenlights, bool, S_IRUGO); | 106 | module_param (blinkenlights, bool, S_IRUGO); |
107 | MODULE_PARM_DESC (blinkenlights, "true to cycle leds on hubs"); | 107 | MODULE_PARM_DESC (blinkenlights, "true to cycle leds on hubs"); |
108 | 108 | ||
@@ -131,12 +131,12 @@ MODULE_PARM_DESC(initial_descriptor_timeout, | |||
131 | * otherwise the new scheme is used. If that fails and "use_both_schemes" | 131 | * otherwise the new scheme is used. If that fails and "use_both_schemes" |
132 | * is set, then the driver will make another attempt, using the other scheme. | 132 | * is set, then the driver will make another attempt, using the other scheme. |
133 | */ | 133 | */ |
134 | static int old_scheme_first = 0; | 134 | static bool old_scheme_first = 0; |
135 | module_param(old_scheme_first, bool, S_IRUGO | S_IWUSR); | 135 | module_param(old_scheme_first, bool, S_IRUGO | S_IWUSR); |
136 | MODULE_PARM_DESC(old_scheme_first, | 136 | MODULE_PARM_DESC(old_scheme_first, |
137 | "start with the old device initialization scheme"); | 137 | "start with the old device initialization scheme"); |
138 | 138 | ||
139 | static int use_both_schemes = 1; | 139 | static bool use_both_schemes = 1; |
140 | module_param(use_both_schemes, bool, S_IRUGO | S_IWUSR); | 140 | module_param(use_both_schemes, bool, S_IRUGO | S_IWUSR); |
141 | MODULE_PARM_DESC(use_both_schemes, | 141 | MODULE_PARM_DESC(use_both_schemes, |
142 | "try the other device initialization scheme if the " | 142 | "try the other device initialization scheme if the " |
@@ -2026,7 +2026,7 @@ static unsigned hub_is_wusb(struct usb_hub *hub) | |||
2026 | #define SET_ADDRESS_TRIES 2 | 2026 | #define SET_ADDRESS_TRIES 2 |
2027 | #define GET_DESCRIPTOR_TRIES 2 | 2027 | #define GET_DESCRIPTOR_TRIES 2 |
2028 | #define SET_CONFIG_TRIES (2 * (use_both_schemes + 1)) | 2028 | #define SET_CONFIG_TRIES (2 * (use_both_schemes + 1)) |
2029 | #define USE_NEW_SCHEME(i) ((i) / 2 == old_scheme_first) | 2029 | #define USE_NEW_SCHEME(i) ((i) / 2 == (int)old_scheme_first) |
2030 | 2030 | ||
2031 | #define HUB_ROOT_RESET_TIME 50 /* times are in msec */ | 2031 | #define HUB_ROOT_RESET_TIME 50 /* times are in msec */ |
2032 | #define HUB_SHORT_RESET_TIME 10 | 2032 | #define HUB_SHORT_RESET_TIME 10 |
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index 1382c90d0834..8ca9f994a280 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c | |||
@@ -47,7 +47,7 @@ | |||
47 | 47 | ||
48 | const char *usbcore_name = "usbcore"; | 48 | const char *usbcore_name = "usbcore"; |
49 | 49 | ||
50 | static int nousb; /* Disable USB when built into kernel image */ | 50 | static bool nousb; /* Disable USB when built into kernel image */ |
51 | 51 | ||
52 | #ifdef CONFIG_USB_SUSPEND | 52 | #ifdef CONFIG_USB_SUSPEND |
53 | static int usb_autosuspend_delay = 2; /* Default delay value, | 53 | static int usb_autosuspend_delay = 2; /* Default delay value, |
diff --git a/drivers/usb/gadget/amd5536udc.c b/drivers/usb/gadget/amd5536udc.c index e9a2c5c44454..c16ff55a74e8 100644 --- a/drivers/usb/gadget/amd5536udc.c +++ b/drivers/usb/gadget/amd5536udc.c | |||
@@ -152,15 +152,15 @@ static const char *ep_string[] = { | |||
152 | }; | 152 | }; |
153 | 153 | ||
154 | /* DMA usage flag */ | 154 | /* DMA usage flag */ |
155 | static int use_dma = 1; | 155 | static bool use_dma = 1; |
156 | /* packet per buffer dma */ | 156 | /* packet per buffer dma */ |
157 | static int use_dma_ppb = 1; | 157 | static bool use_dma_ppb = 1; |
158 | /* with per descr. update */ | 158 | /* with per descr. update */ |
159 | static int use_dma_ppb_du; | 159 | static bool use_dma_ppb_du; |
160 | /* buffer fill mode */ | 160 | /* buffer fill mode */ |
161 | static int use_dma_bufferfill_mode; | 161 | static int use_dma_bufferfill_mode; |
162 | /* full speed only mode */ | 162 | /* full speed only mode */ |
163 | static int use_fullspeed; | 163 | static bool use_fullspeed; |
164 | /* tx buffer size for high speed */ | 164 | /* tx buffer size for high speed */ |
165 | static unsigned long hs_tx_buf = UDC_EPIN_BUFF_SIZE; | 165 | static unsigned long hs_tx_buf = UDC_EPIN_BUFF_SIZE; |
166 | 166 | ||
diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index 0cd764d59351..a28f6ffcd0f3 100644 --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c | |||
@@ -250,9 +250,9 @@ static struct usb_configuration rndis_config_driver = { | |||
250 | /*-------------------------------------------------------------------------*/ | 250 | /*-------------------------------------------------------------------------*/ |
251 | 251 | ||
252 | #ifdef CONFIG_USB_ETH_EEM | 252 | #ifdef CONFIG_USB_ETH_EEM |
253 | static int use_eem = 1; | 253 | static bool use_eem = 1; |
254 | #else | 254 | #else |
255 | static int use_eem; | 255 | static bool use_eem; |
256 | #endif | 256 | #endif |
257 | module_param(use_eem, bool, 0); | 257 | module_param(use_eem, bool, 0); |
258 | MODULE_PARM_DESC(use_eem, "use CDC EEM mode"); | 258 | MODULE_PARM_DESC(use_eem, "use CDC EEM mode"); |
diff --git a/drivers/usb/gadget/file_storage.c b/drivers/usb/gadget/file_storage.c index e0f30fc70e45..47766f0e7caa 100644 --- a/drivers/usb/gadget/file_storage.c +++ b/drivers/usb/gadget/file_storage.c | |||
@@ -303,16 +303,16 @@ MODULE_LICENSE("Dual BSD/GPL"); | |||
303 | static struct { | 303 | static struct { |
304 | char *file[FSG_MAX_LUNS]; | 304 | char *file[FSG_MAX_LUNS]; |
305 | char *serial; | 305 | char *serial; |
306 | int ro[FSG_MAX_LUNS]; | 306 | bool ro[FSG_MAX_LUNS]; |
307 | int nofua[FSG_MAX_LUNS]; | 307 | bool nofua[FSG_MAX_LUNS]; |
308 | unsigned int num_filenames; | 308 | unsigned int num_filenames; |
309 | unsigned int num_ros; | 309 | unsigned int num_ros; |
310 | unsigned int num_nofuas; | 310 | unsigned int num_nofuas; |
311 | unsigned int nluns; | 311 | unsigned int nluns; |
312 | 312 | ||
313 | int removable; | 313 | bool removable; |
314 | int can_stall; | 314 | bool can_stall; |
315 | int cdrom; | 315 | bool cdrom; |
316 | 316 | ||
317 | char *transport_parm; | 317 | char *transport_parm; |
318 | char *protocol_parm; | 318 | char *protocol_parm; |
diff --git a/drivers/usb/gadget/net2272.c b/drivers/usb/gadget/net2272.c index 4c81d540bc26..7322d293213e 100644 --- a/drivers/usb/gadget/net2272.c +++ b/drivers/usb/gadget/net2272.c | |||
@@ -69,7 +69,7 @@ static const char * const ep_name[] = { | |||
69 | * | 69 | * |
70 | * If use_dma is disabled, pio will be used instead. | 70 | * If use_dma is disabled, pio will be used instead. |
71 | */ | 71 | */ |
72 | static int use_dma = 0; | 72 | static bool use_dma = 0; |
73 | module_param(use_dma, bool, 0644); | 73 | module_param(use_dma, bool, 0644); |
74 | 74 | ||
75 | /* | 75 | /* |
diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index cf1f36454d08..cdedd1336745 100644 --- a/drivers/usb/gadget/net2280.c +++ b/drivers/usb/gadget/net2280.c | |||
@@ -90,8 +90,8 @@ static const char *const ep_name [] = { | |||
90 | * Some gadget drivers work better with the dma support here than others. | 90 | * Some gadget drivers work better with the dma support here than others. |
91 | * These two parameters let you use PIO or more aggressive DMA. | 91 | * These two parameters let you use PIO or more aggressive DMA. |
92 | */ | 92 | */ |
93 | static int use_dma = 1; | 93 | static bool use_dma = 1; |
94 | static int use_dma_chaining = 0; | 94 | static bool use_dma_chaining = 0; |
95 | 95 | ||
96 | /* "modprobe net2280 use_dma=n" etc */ | 96 | /* "modprobe net2280 use_dma=n" etc */ |
97 | module_param (use_dma, bool, S_IRUGO); | 97 | module_param (use_dma, bool, S_IRUGO); |
@@ -112,7 +112,7 @@ module_param (fifo_mode, ushort, 0644); | |||
112 | * USB suspend requests will be ignored. This is acceptable for | 112 | * USB suspend requests will be ignored. This is acceptable for |
113 | * self-powered devices | 113 | * self-powered devices |
114 | */ | 114 | */ |
115 | static int enable_suspend = 0; | 115 | static bool enable_suspend = 0; |
116 | 116 | ||
117 | /* "modprobe net2280 enable_suspend=1" etc */ | 117 | /* "modprobe net2280 enable_suspend=1" etc */ |
118 | module_param (enable_suspend, bool, S_IRUGO); | 118 | module_param (enable_suspend, bool, S_IRUGO); |
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c index 7db5bbe6251b..576cd8578b45 100644 --- a/drivers/usb/gadget/omap_udc.c +++ b/drivers/usb/gadget/omap_udc.c | |||
@@ -98,7 +98,7 @@ module_param (fifo_mode, uint, 0); | |||
98 | MODULE_PARM_DESC (fifo_mode, "endpoint configuration"); | 98 | MODULE_PARM_DESC (fifo_mode, "endpoint configuration"); |
99 | 99 | ||
100 | #ifdef USE_DMA | 100 | #ifdef USE_DMA |
101 | static unsigned use_dma = 1; | 101 | static bool use_dma = 1; |
102 | 102 | ||
103 | /* "modprobe omap_udc use_dma=y", or else as a kernel | 103 | /* "modprobe omap_udc use_dma=y", or else as a kernel |
104 | * boot parameter "omap_udc:use_dma=y" | 104 | * boot parameter "omap_udc:use_dma=y" |
diff --git a/drivers/usb/gadget/pch_udc.c b/drivers/usb/gadget/pch_udc.c index dd2313cce1d3..a3fcaae4bc2a 100644 --- a/drivers/usb/gadget/pch_udc.c +++ b/drivers/usb/gadget/pch_udc.c | |||
@@ -359,7 +359,7 @@ struct pch_udc_dev { | |||
359 | static const char ep0_string[] = "ep0in"; | 359 | static const char ep0_string[] = "ep0in"; |
360 | static DEFINE_SPINLOCK(udc_stall_spinlock); /* stall spin lock */ | 360 | static DEFINE_SPINLOCK(udc_stall_spinlock); /* stall spin lock */ |
361 | struct pch_udc_dev *pch_udc; /* pointer to device object */ | 361 | struct pch_udc_dev *pch_udc; /* pointer to device object */ |
362 | static int speed_fs; | 362 | static bool speed_fs; |
363 | module_param_named(speed_fs, speed_fs, bool, S_IRUGO); | 363 | module_param_named(speed_fs, speed_fs, bool, S_IRUGO); |
364 | MODULE_PARM_DESC(speed_fs, "true for Full speed operation"); | 364 | MODULE_PARM_DESC(speed_fs, "true for Full speed operation"); |
365 | 365 | ||
diff --git a/drivers/usb/gadget/serial.c b/drivers/usb/gadget/serial.c index ed1b816e58d8..ad9e5b2df642 100644 --- a/drivers/usb/gadget/serial.c +++ b/drivers/usb/gadget/serial.c | |||
@@ -123,11 +123,11 @@ MODULE_AUTHOR("Al Borchers"); | |||
123 | MODULE_AUTHOR("David Brownell"); | 123 | MODULE_AUTHOR("David Brownell"); |
124 | MODULE_LICENSE("GPL"); | 124 | MODULE_LICENSE("GPL"); |
125 | 125 | ||
126 | static int use_acm = true; | 126 | static bool use_acm = true; |
127 | module_param(use_acm, bool, 0); | 127 | module_param(use_acm, bool, 0); |
128 | MODULE_PARM_DESC(use_acm, "Use CDC ACM, default=yes"); | 128 | MODULE_PARM_DESC(use_acm, "Use CDC ACM, default=yes"); |
129 | 129 | ||
130 | static int use_obex = false; | 130 | static bool use_obex = false; |
131 | module_param(use_obex, bool, 0); | 131 | module_param(use_obex, bool, 0); |
132 | MODULE_PARM_DESC(use_obex, "Use CDC OBEX, default=no"); | 132 | MODULE_PARM_DESC(use_obex, "Use CDC OBEX, default=no"); |
133 | 133 | ||
diff --git a/drivers/usb/gadget/zero.c b/drivers/usb/gadget/zero.c index 20697cc132d1..31d34832907e 100644 --- a/drivers/usb/gadget/zero.c +++ b/drivers/usb/gadget/zero.c | |||
@@ -81,7 +81,7 @@ module_param(buflen, uint, 0); | |||
81 | * work better with hosts where config changes are problematic or | 81 | * work better with hosts where config changes are problematic or |
82 | * controllers (like original superh) that only support one config. | 82 | * controllers (like original superh) that only support one config. |
83 | */ | 83 | */ |
84 | static int loopdefault = 0; | 84 | static bool loopdefault = 0; |
85 | module_param(loopdefault, bool, S_IRUGO|S_IWUSR); | 85 | module_param(loopdefault, bool, S_IRUGO|S_IWUSR); |
86 | 86 | ||
87 | /*-------------------------------------------------------------------------*/ | 87 | /*-------------------------------------------------------------------------*/ |
diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index e311a511529b..a007a9fe0f87 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c | |||
@@ -112,7 +112,7 @@ module_param (park, uint, S_IRUGO); | |||
112 | MODULE_PARM_DESC (park, "park setting; 1-3 back-to-back async packets"); | 112 | MODULE_PARM_DESC (park, "park setting; 1-3 back-to-back async packets"); |
113 | 113 | ||
114 | /* for flakey hardware, ignore overcurrent indicators */ | 114 | /* for flakey hardware, ignore overcurrent indicators */ |
115 | static int ignore_oc = 0; | 115 | static bool ignore_oc = 0; |
116 | module_param (ignore_oc, bool, S_IRUGO); | 116 | module_param (ignore_oc, bool, S_IRUGO); |
117 | MODULE_PARM_DESC (ignore_oc, "ignore bogus hardware overcurrent indications"); | 117 | MODULE_PARM_DESC (ignore_oc, "ignore bogus hardware overcurrent indications"); |
118 | 118 | ||
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 5f5a63241436..34b9edd86651 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c | |||
@@ -115,13 +115,13 @@ static inline void sb800_prefetch(struct ohci_hcd *ohci, int on) | |||
115 | 115 | ||
116 | 116 | ||
117 | /* Some boards misreport power switching/overcurrent */ | 117 | /* Some boards misreport power switching/overcurrent */ |
118 | static int distrust_firmware = 1; | 118 | static bool distrust_firmware = 1; |
119 | module_param (distrust_firmware, bool, 0); | 119 | module_param (distrust_firmware, bool, 0); |
120 | MODULE_PARM_DESC (distrust_firmware, | 120 | MODULE_PARM_DESC (distrust_firmware, |
121 | "true to distrust firmware power/overcurrent setup"); | 121 | "true to distrust firmware power/overcurrent setup"); |
122 | 122 | ||
123 | /* Some boards leave IR set wrongly, since they fail BIOS/SMM handshakes */ | 123 | /* Some boards leave IR set wrongly, since they fail BIOS/SMM handshakes */ |
124 | static int no_handshake = 0; | 124 | static bool no_handshake = 0; |
125 | module_param (no_handshake, bool, 0); | 125 | module_param (no_handshake, bool, 0); |
126 | MODULE_PARM_DESC (no_handshake, "true (not default) disables BIOS handshake"); | 126 | MODULE_PARM_DESC (no_handshake, "true (not default) disables BIOS handshake"); |
127 | 127 | ||
diff --git a/drivers/usb/host/oxu210hp-hcd.c b/drivers/usb/host/oxu210hp-hcd.c index 6f62de5c6e35..015c7c62ed49 100644 --- a/drivers/usb/host/oxu210hp-hcd.c +++ b/drivers/usb/host/oxu210hp-hcd.c | |||
@@ -233,7 +233,7 @@ module_param(park, uint, S_IRUGO); | |||
233 | MODULE_PARM_DESC(park, "park setting; 1-3 back-to-back async packets"); | 233 | MODULE_PARM_DESC(park, "park setting; 1-3 back-to-back async packets"); |
234 | 234 | ||
235 | /* For flakey hardware, ignore overcurrent indicators */ | 235 | /* For flakey hardware, ignore overcurrent indicators */ |
236 | static int ignore_oc; | 236 | static bool ignore_oc; |
237 | module_param(ignore_oc, bool, S_IRUGO); | 237 | module_param(ignore_oc, bool, S_IRUGO); |
238 | MODULE_PARM_DESC(ignore_oc, "ignore bogus hardware overcurrent indications"); | 238 | MODULE_PARM_DESC(ignore_oc, "ignore bogus hardware overcurrent indications"); |
239 | 239 | ||
diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c index 533d12cca371..16dd6a6abf00 100644 --- a/drivers/usb/host/u132-hcd.c +++ b/drivers/usb/host/u132-hcd.c | |||
@@ -74,7 +74,7 @@ MODULE_LICENSE("GPL"); | |||
74 | #define INT_MODULE_PARM(n, v) static int n = v;module_param(n, int, 0444) | 74 | #define INT_MODULE_PARM(n, v) static int n = v;module_param(n, int, 0444) |
75 | INT_MODULE_PARM(testing, 0); | 75 | INT_MODULE_PARM(testing, 0); |
76 | /* Some boards misreport power switching/overcurrent*/ | 76 | /* Some boards misreport power switching/overcurrent*/ |
77 | static int distrust_firmware = 1; | 77 | static bool distrust_firmware = 1; |
78 | module_param(distrust_firmware, bool, 0); | 78 | module_param(distrust_firmware, bool, 0); |
79 | MODULE_PARM_DESC(distrust_firmware, "true to distrust firmware power/overcurren" | 79 | MODULE_PARM_DESC(distrust_firmware, "true to distrust firmware power/overcurren" |
80 | "t setup"); | 80 | "t setup"); |
diff --git a/drivers/usb/host/uhci-hcd.c b/drivers/usb/host/uhci-hcd.c index c8ae199cfbb8..6b5eb1017e2c 100644 --- a/drivers/usb/host/uhci-hcd.c +++ b/drivers/usb/host/uhci-hcd.c | |||
@@ -59,7 +59,7 @@ | |||
59 | #define DRIVER_DESC "USB Universal Host Controller Interface driver" | 59 | #define DRIVER_DESC "USB Universal Host Controller Interface driver" |
60 | 60 | ||
61 | /* for flakey hardware, ignore overcurrent indicators */ | 61 | /* for flakey hardware, ignore overcurrent indicators */ |
62 | static int ignore_oc; | 62 | static bool ignore_oc; |
63 | module_param(ignore_oc, bool, S_IRUGO); | 63 | module_param(ignore_oc, bool, S_IRUGO); |
64 | MODULE_PARM_DESC(ignore_oc, "ignore hardware overcurrent indications"); | 64 | MODULE_PARM_DESC(ignore_oc, "ignore hardware overcurrent indications"); |
65 | 65 | ||
diff --git a/drivers/usb/misc/ftdi-elan.c b/drivers/usb/misc/ftdi-elan.c index 2dbe600fbc11..a4a3c7cd4a11 100644 --- a/drivers/usb/misc/ftdi-elan.c +++ b/drivers/usb/misc/ftdi-elan.c | |||
@@ -53,7 +53,7 @@ MODULE_AUTHOR("Tony Olech"); | |||
53 | MODULE_DESCRIPTION("FTDI ELAN driver"); | 53 | MODULE_DESCRIPTION("FTDI ELAN driver"); |
54 | MODULE_LICENSE("GPL"); | 54 | MODULE_LICENSE("GPL"); |
55 | #define INT_MODULE_PARM(n, v) static int n = v;module_param(n, int, 0444) | 55 | #define INT_MODULE_PARM(n, v) static int n = v;module_param(n, int, 0444) |
56 | static int distrust_firmware = 1; | 56 | static bool distrust_firmware = 1; |
57 | module_param(distrust_firmware, bool, 0); | 57 | module_param(distrust_firmware, bool, 0); |
58 | MODULE_PARM_DESC(distrust_firmware, "true to distrust firmware power/overcurren" | 58 | MODULE_PARM_DESC(distrust_firmware, "true to distrust firmware power/overcurren" |
59 | "t setup"); | 59 | "t setup"); |
diff --git a/drivers/usb/misc/iowarrior.c b/drivers/usb/misc/iowarrior.c index 2453a39b4794..4fd0dc835ae5 100644 --- a/drivers/usb/misc/iowarrior.c +++ b/drivers/usb/misc/iowarrior.c | |||
@@ -62,7 +62,7 @@ MODULE_LICENSE("GPL"); | |||
62 | 62 | ||
63 | /* Module parameters */ | 63 | /* Module parameters */ |
64 | static DEFINE_MUTEX(iowarrior_mutex); | 64 | static DEFINE_MUTEX(iowarrior_mutex); |
65 | static int debug = 0; | 65 | static bool debug = 0; |
66 | module_param(debug, bool, 0644); | 66 | module_param(debug, bool, 0644); |
67 | MODULE_PARM_DESC(debug, "debug=1 enables debugging messages"); | 67 | MODULE_PARM_DESC(debug, "debug=1 enables debugging messages"); |
68 | 68 | ||
diff --git a/drivers/usb/musb/cppi_dma.c b/drivers/usb/musb/cppi_dma.c index 53be7aef6308..66bc376005d2 100644 --- a/drivers/usb/musb/cppi_dma.c +++ b/drivers/usb/musb/cppi_dma.c | |||
@@ -750,7 +750,7 @@ cppi_next_tx_segment(struct musb *musb, struct cppi_channel *tx) | |||
750 | * So this module parameter lets the heuristic be disabled. When using | 750 | * So this module parameter lets the heuristic be disabled. When using |
751 | * gadgetfs, the heuristic will probably need to be disabled. | 751 | * gadgetfs, the heuristic will probably need to be disabled. |
752 | */ | 752 | */ |
753 | static int cppi_rx_rndis = 1; | 753 | static bool cppi_rx_rndis = 1; |
754 | 754 | ||
755 | module_param(cppi_rx_rndis, bool, 0); | 755 | module_param(cppi_rx_rndis, bool, 0); |
756 | MODULE_PARM_DESC(cppi_rx_rndis, "enable/disable RX RNDIS heuristic"); | 756 | MODULE_PARM_DESC(cppi_rx_rndis, "enable/disable RX RNDIS heuristic"); |
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index f6ff7923048b..56cf0243979e 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c | |||
@@ -1586,7 +1586,7 @@ irqreturn_t musb_interrupt(struct musb *musb) | |||
1586 | EXPORT_SYMBOL_GPL(musb_interrupt); | 1586 | EXPORT_SYMBOL_GPL(musb_interrupt); |
1587 | 1587 | ||
1588 | #ifndef CONFIG_MUSB_PIO_ONLY | 1588 | #ifndef CONFIG_MUSB_PIO_ONLY |
1589 | static int __initdata use_dma = 1; | 1589 | static bool __initdata use_dma = 1; |
1590 | 1590 | ||
1591 | /* "modprobe ... use_dma=0" etc */ | 1591 | /* "modprobe ... use_dma=0" etc */ |
1592 | module_param(use_dma, bool, 0); | 1592 | module_param(use_dma, bool, 0); |
diff --git a/drivers/usb/serial/aircable.c b/drivers/usb/serial/aircable.c index b43d07df4c44..123bf9155339 100644 --- a/drivers/usb/serial/aircable.c +++ b/drivers/usb/serial/aircable.c | |||
@@ -52,7 +52,7 @@ | |||
52 | #include <linux/usb.h> | 52 | #include <linux/usb.h> |
53 | #include <linux/usb/serial.h> | 53 | #include <linux/usb/serial.h> |
54 | 54 | ||
55 | static int debug; | 55 | static bool debug; |
56 | 56 | ||
57 | /* Vendor and Product ID */ | 57 | /* Vendor and Product ID */ |
58 | #define AIRCABLE_VID 0x16CA | 58 | #define AIRCABLE_VID 0x16CA |
diff --git a/drivers/usb/serial/ark3116.c b/drivers/usb/serial/ark3116.c index 18e875b92e00..69328dcfd91a 100644 --- a/drivers/usb/serial/ark3116.c +++ b/drivers/usb/serial/ark3116.c | |||
@@ -37,7 +37,7 @@ | |||
37 | #include <linux/mutex.h> | 37 | #include <linux/mutex.h> |
38 | #include <linux/spinlock.h> | 38 | #include <linux/spinlock.h> |
39 | 39 | ||
40 | static int debug; | 40 | static bool debug; |
41 | /* | 41 | /* |
42 | * Version information | 42 | * Version information |
43 | */ | 43 | */ |
diff --git a/drivers/usb/serial/belkin_sa.c b/drivers/usb/serial/belkin_sa.c index f9f29b289f2f..29ffeb6279c7 100644 --- a/drivers/usb/serial/belkin_sa.c +++ b/drivers/usb/serial/belkin_sa.c | |||
@@ -37,7 +37,7 @@ | |||
37 | #include <linux/usb/serial.h> | 37 | #include <linux/usb/serial.h> |
38 | #include "belkin_sa.h" | 38 | #include "belkin_sa.h" |
39 | 39 | ||
40 | static int debug; | 40 | static bool debug; |
41 | 41 | ||
42 | /* | 42 | /* |
43 | * Version Information | 43 | * Version Information |
diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c index 0e77511060c0..5e53cc59e652 100644 --- a/drivers/usb/serial/ch341.c +++ b/drivers/usb/serial/ch341.c | |||
@@ -70,7 +70,7 @@ | |||
70 | #define CH341_NBREAK_BITS_REG2 0x40 | 70 | #define CH341_NBREAK_BITS_REG2 0x40 |
71 | 71 | ||
72 | 72 | ||
73 | static int debug; | 73 | static bool debug; |
74 | 74 | ||
75 | static const struct usb_device_id id_table[] = { | 75 | static const struct usb_device_id id_table[] = { |
76 | { USB_DEVICE(0x4348, 0x5523) }, | 76 | { USB_DEVICE(0x4348, 0x5523) }, |
diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c index adfe660ed008..fba1147ed916 100644 --- a/drivers/usb/serial/cp210x.c +++ b/drivers/usb/serial/cp210x.c | |||
@@ -49,7 +49,7 @@ static void cp210x_break_ctl(struct tty_struct *, int); | |||
49 | static int cp210x_startup(struct usb_serial *); | 49 | static int cp210x_startup(struct usb_serial *); |
50 | static void cp210x_dtr_rts(struct usb_serial_port *p, int on); | 50 | static void cp210x_dtr_rts(struct usb_serial_port *p, int on); |
51 | 51 | ||
52 | static int debug; | 52 | static bool debug; |
53 | 53 | ||
54 | static const struct usb_device_id id_table[] = { | 54 | static const struct usb_device_id id_table[] = { |
55 | { USB_DEVICE(0x045B, 0x0053) }, /* Renesas RX610 RX-Stick */ | 55 | { USB_DEVICE(0x045B, 0x0053) }, /* Renesas RX610 RX-Stick */ |
diff --git a/drivers/usb/serial/cyberjack.c b/drivers/usb/serial/cyberjack.c index 98bf83349838..6bc3802a581a 100644 --- a/drivers/usb/serial/cyberjack.c +++ b/drivers/usb/serial/cyberjack.c | |||
@@ -43,7 +43,7 @@ | |||
43 | 43 | ||
44 | #define CYBERJACK_LOCAL_BUF_SIZE 32 | 44 | #define CYBERJACK_LOCAL_BUF_SIZE 32 |
45 | 45 | ||
46 | static int debug; | 46 | static bool debug; |
47 | 47 | ||
48 | /* | 48 | /* |
49 | * Version Information | 49 | * Version Information |
diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c index 07680d6b792b..3bdeafa29c24 100644 --- a/drivers/usb/serial/cypress_m8.c +++ b/drivers/usb/serial/cypress_m8.c | |||
@@ -46,10 +46,10 @@ | |||
46 | #include "cypress_m8.h" | 46 | #include "cypress_m8.h" |
47 | 47 | ||
48 | 48 | ||
49 | static int debug; | 49 | static bool debug; |
50 | static int stats; | 50 | static bool stats; |
51 | static int interval; | 51 | static int interval; |
52 | static int unstable_bauds; | 52 | static bool unstable_bauds; |
53 | 53 | ||
54 | /* | 54 | /* |
55 | * Version Information | 55 | * Version Information |
diff --git a/drivers/usb/serial/digi_acceleport.c b/drivers/usb/serial/digi_acceleport.c index 6d26a77d0f2a..b23bebd721a1 100644 --- a/drivers/usb/serial/digi_acceleport.c +++ b/drivers/usb/serial/digi_acceleport.c | |||
@@ -251,7 +251,7 @@ static int digi_read_oob_callback(struct urb *urb); | |||
251 | 251 | ||
252 | /* Statics */ | 252 | /* Statics */ |
253 | 253 | ||
254 | static int debug; | 254 | static bool debug; |
255 | 255 | ||
256 | static const struct usb_device_id id_table_combined[] = { | 256 | static const struct usb_device_id id_table_combined[] = { |
257 | { USB_DEVICE(DIGI_VENDOR_ID, DIGI_2_ID) }, | 257 | { USB_DEVICE(DIGI_VENDOR_ID, DIGI_2_ID) }, |
diff --git a/drivers/usb/serial/empeg.c b/drivers/usb/serial/empeg.c index 504b5585ea45..aced6817bf95 100644 --- a/drivers/usb/serial/empeg.c +++ b/drivers/usb/serial/empeg.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <linux/usb.h> | 28 | #include <linux/usb.h> |
29 | #include <linux/usb/serial.h> | 29 | #include <linux/usb/serial.h> |
30 | 30 | ||
31 | static int debug; | 31 | static bool debug; |
32 | 32 | ||
33 | /* | 33 | /* |
34 | * Version Information | 34 | * Version Information |
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index c290df97108e..01b6404df395 100644 --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c | |||
@@ -55,7 +55,7 @@ | |||
55 | #define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Bill Ryder <bryder@sgi.com>, Kuba Ober <kuba@mareimbrium.org>, Andreas Mohr, Johan Hovold <jhovold@gmail.com>" | 55 | #define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Bill Ryder <bryder@sgi.com>, Kuba Ober <kuba@mareimbrium.org>, Andreas Mohr, Johan Hovold <jhovold@gmail.com>" |
56 | #define DRIVER_DESC "USB FTDI Serial Converters Driver" | 56 | #define DRIVER_DESC "USB FTDI Serial Converters Driver" |
57 | 57 | ||
58 | static int debug; | 58 | static bool debug; |
59 | static __u16 vendor = FTDI_VID; | 59 | static __u16 vendor = FTDI_VID; |
60 | static __u16 product; | 60 | static __u16 product; |
61 | 61 | ||
diff --git a/drivers/usb/serial/funsoft.c b/drivers/usb/serial/funsoft.c index e21ce9ddfc63..5d4b099dcf8b 100644 --- a/drivers/usb/serial/funsoft.c +++ b/drivers/usb/serial/funsoft.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 | static const struct usb_device_id id_table[] = { | 21 | static const struct usb_device_id id_table[] = { |
22 | { USB_DEVICE(0x1404, 0xcddc) }, | 22 | { USB_DEVICE(0x1404, 0xcddc) }, |
diff --git a/drivers/usb/serial/garmin_gps.c b/drivers/usb/serial/garmin_gps.c index bf12565f8e87..21343378c322 100644 --- a/drivers/usb/serial/garmin_gps.c +++ b/drivers/usb/serial/garmin_gps.c | |||
@@ -42,7 +42,7 @@ | |||
42 | static int initial_mode = 1; | 42 | static int initial_mode = 1; |
43 | 43 | ||
44 | /* debug flag */ | 44 | /* debug flag */ |
45 | static int debug; | 45 | static bool debug; |
46 | 46 | ||
47 | #define GARMIN_VENDOR_ID 0x091E | 47 | #define GARMIN_VENDOR_ID 0x091E |
48 | 48 | ||
diff --git a/drivers/usb/serial/io_edgeport.c b/drivers/usb/serial/io_edgeport.c index abd2ee2b2f99..0497575e4799 100644 --- a/drivers/usb/serial/io_edgeport.c +++ b/drivers/usb/serial/io_edgeport.c | |||
@@ -191,7 +191,7 @@ static const struct divisor_table_entry divisor_table[] = { | |||
191 | }; | 191 | }; |
192 | 192 | ||
193 | /* local variables */ | 193 | /* local variables */ |
194 | static int debug; | 194 | static bool debug; |
195 | 195 | ||
196 | static atomic_t CmdUrbs; /* Number of outstanding Command Write Urbs */ | 196 | static atomic_t CmdUrbs; /* Number of outstanding Command Write Urbs */ |
197 | 197 | ||
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index e44d375edaad..65bf06aa591a 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c | |||
@@ -210,10 +210,10 @@ static unsigned char OperationalMajorVersion; | |||
210 | static unsigned char OperationalMinorVersion; | 210 | static unsigned char OperationalMinorVersion; |
211 | static unsigned short OperationalBuildNumber; | 211 | static unsigned short OperationalBuildNumber; |
212 | 212 | ||
213 | static int debug; | 213 | static bool debug; |
214 | 214 | ||
215 | static int closing_wait = EDGE_CLOSING_WAIT; | 215 | static int closing_wait = EDGE_CLOSING_WAIT; |
216 | static int ignore_cpu_rev; | 216 | static bool ignore_cpu_rev; |
217 | static int default_uart_mode; /* RS232 */ | 217 | static int default_uart_mode; /* RS232 */ |
218 | 218 | ||
219 | static void edge_tty_recv(struct device *dev, struct tty_struct *tty, | 219 | static void edge_tty_recv(struct device *dev, struct tty_struct *tty, |
diff --git a/drivers/usb/serial/ipaq.c b/drivers/usb/serial/ipaq.c index 36f5cbe90485..06053a920dd8 100644 --- a/drivers/usb/serial/ipaq.c +++ b/drivers/usb/serial/ipaq.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #define DRIVER_DESC "USB PocketPC PDA driver" | 34 | #define DRIVER_DESC "USB PocketPC PDA driver" |
35 | 35 | ||
36 | static __u16 product, vendor; | 36 | static __u16 product, vendor; |
37 | static int debug; | 37 | static bool debug; |
38 | static int connect_retries = KP_RETRIES; | 38 | static int connect_retries = KP_RETRIES; |
39 | static int initial_wait; | 39 | static int initial_wait; |
40 | 40 | ||
diff --git a/drivers/usb/serial/ipw.c b/drivers/usb/serial/ipw.c index 5170799d6e94..6f9356f3f99e 100644 --- a/drivers/usb/serial/ipw.c +++ b/drivers/usb/serial/ipw.c | |||
@@ -147,7 +147,7 @@ static struct usb_driver usb_ipw_driver = { | |||
147 | .no_dynamic_id = 1, | 147 | .no_dynamic_id = 1, |
148 | }; | 148 | }; |
149 | 149 | ||
150 | static int debug; | 150 | static bool debug; |
151 | 151 | ||
152 | static int ipw_open(struct tty_struct *tty, struct usb_serial_port *port) | 152 | static int ipw_open(struct tty_struct *tty, struct usb_serial_port *port) |
153 | { | 153 | { |
diff --git a/drivers/usb/serial/ir-usb.c b/drivers/usb/serial/ir-usb.c index 0c537da0d3cd..84a396e83671 100644 --- a/drivers/usb/serial/ir-usb.c +++ b/drivers/usb/serial/ir-usb.c | |||
@@ -45,7 +45,7 @@ | |||
45 | #define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Johan Hovold <jhovold@gmail.com>" | 45 | #define DRIVER_AUTHOR "Greg Kroah-Hartman <greg@kroah.com>, Johan Hovold <jhovold@gmail.com>" |
46 | #define DRIVER_DESC "USB IR Dongle driver" | 46 | #define DRIVER_DESC "USB IR Dongle driver" |
47 | 47 | ||
48 | static int debug; | 48 | static bool debug; |
49 | 49 | ||
50 | /* if overridden by the user, then use their value for the size of the read and | 50 | /* if overridden by the user, then use their value for the size of the read and |
51 | * write urbs */ | 51 | * write urbs */ |
diff --git a/drivers/usb/serial/iuu_phoenix.c b/drivers/usb/serial/iuu_phoenix.c index 64d0ffd4440b..3077a4436976 100644 --- a/drivers/usb/serial/iuu_phoenix.c +++ b/drivers/usb/serial/iuu_phoenix.c | |||
@@ -34,9 +34,9 @@ | |||
34 | 34 | ||
35 | 35 | ||
36 | #ifdef CONFIG_USB_SERIAL_DEBUG | 36 | #ifdef CONFIG_USB_SERIAL_DEBUG |
37 | static int debug = 1; | 37 | static bool debug = 1; |
38 | #else | 38 | #else |
39 | static int debug; | 39 | static bool debug; |
40 | #endif | 40 | #endif |
41 | 41 | ||
42 | /* | 42 | /* |
@@ -65,7 +65,7 @@ static int clockmode = 1; | |||
65 | static int cdmode = 1; | 65 | static int cdmode = 1; |
66 | static int iuu_cardin; | 66 | static int iuu_cardin; |
67 | static int iuu_cardout; | 67 | static int iuu_cardout; |
68 | static int xmas; | 68 | static bool xmas; |
69 | static int vcc_default = 5; | 69 | static int vcc_default = 5; |
70 | 70 | ||
71 | static void read_rxcmd_callback(struct urb *urb); | 71 | static void read_rxcmd_callback(struct urb *urb); |
diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c index bc8dc203e818..4cc36c761801 100644 --- a/drivers/usb/serial/keyspan.c +++ b/drivers/usb/serial/keyspan.c | |||
@@ -45,7 +45,7 @@ | |||
45 | #include <linux/usb/serial.h> | 45 | #include <linux/usb/serial.h> |
46 | #include "keyspan.h" | 46 | #include "keyspan.h" |
47 | 47 | ||
48 | static int debug; | 48 | static bool debug; |
49 | 49 | ||
50 | /* | 50 | /* |
51 | * Version Information | 51 | * Version Information |
diff --git a/drivers/usb/serial/keyspan_pda.c b/drivers/usb/serial/keyspan_pda.c index a40615674a68..7c62a7048302 100644 --- a/drivers/usb/serial/keyspan_pda.c +++ b/drivers/usb/serial/keyspan_pda.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include <linux/usb.h> | 31 | #include <linux/usb.h> |
32 | #include <linux/usb/serial.h> | 32 | #include <linux/usb/serial.h> |
33 | 33 | ||
34 | static int debug; | 34 | static bool debug; |
35 | 35 | ||
36 | /* make a simple define to handle if we are compiling keyspan_pda or xircom support */ | 36 | /* make a simple define to handle if we are compiling keyspan_pda or xircom support */ |
37 | #if defined(CONFIG_USB_SERIAL_KEYSPAN_PDA) || defined(CONFIG_USB_SERIAL_KEYSPAN_PDA_MODULE) | 37 | #if defined(CONFIG_USB_SERIAL_KEYSPAN_PDA) || defined(CONFIG_USB_SERIAL_KEYSPAN_PDA_MODULE) |
diff --git a/drivers/usb/serial/kl5kusb105.c b/drivers/usb/serial/kl5kusb105.c index 19373cb7c5bf..fc064e1442ca 100644 --- a/drivers/usb/serial/kl5kusb105.c +++ b/drivers/usb/serial/kl5kusb105.c | |||
@@ -49,7 +49,7 @@ | |||
49 | #include <linux/usb/serial.h> | 49 | #include <linux/usb/serial.h> |
50 | #include "kl5kusb105.h" | 50 | #include "kl5kusb105.h" |
51 | 51 | ||
52 | static int debug; | 52 | static bool debug; |
53 | 53 | ||
54 | /* | 54 | /* |
55 | * Version Information | 55 | * Version Information |
diff --git a/drivers/usb/serial/mct_u232.c b/drivers/usb/serial/mct_u232.c index a975bb80303f..27fa9c8a77b0 100644 --- a/drivers/usb/serial/mct_u232.c +++ b/drivers/usb/serial/mct_u232.c | |||
@@ -45,7 +45,7 @@ | |||
45 | #define DRIVER_AUTHOR "Wolfgang Grandegger <wolfgang@ces.ch>" | 45 | #define DRIVER_AUTHOR "Wolfgang Grandegger <wolfgang@ces.ch>" |
46 | #define DRIVER_DESC "Magic Control Technology USB-RS232 converter driver" | 46 | #define DRIVER_DESC "Magic Control Technology USB-RS232 converter driver" |
47 | 47 | ||
48 | static int debug; | 48 | static bool debug; |
49 | 49 | ||
50 | /* | 50 | /* |
51 | * Function prototypes | 51 | * Function prototypes |
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c index 19d112f51b97..4554ee49e635 100644 --- a/drivers/usb/serial/mos7720.c +++ b/drivers/usb/serial/mos7720.c | |||
@@ -71,7 +71,7 @@ struct moschip_port { | |||
71 | struct urb *write_urb_pool[NUM_URBS]; | 71 | struct urb *write_urb_pool[NUM_URBS]; |
72 | }; | 72 | }; |
73 | 73 | ||
74 | static int debug; | 74 | static bool debug; |
75 | 75 | ||
76 | static struct usb_serial_driver moschip7720_2port_driver; | 76 | static struct usb_serial_driver moschip7720_2port_driver; |
77 | 77 | ||
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index 55cfd6265b98..03b5e249e95e 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c | |||
@@ -263,7 +263,7 @@ struct moschip_port { | |||
263 | }; | 263 | }; |
264 | 264 | ||
265 | 265 | ||
266 | static int debug; | 266 | static bool debug; |
267 | 267 | ||
268 | /* | 268 | /* |
269 | * mos7840_set_reg_sync | 269 | * mos7840_set_reg_sync |
diff --git a/drivers/usb/serial/navman.c b/drivers/usb/serial/navman.c index 1f00f243c26c..b28f1db0195f 100644 --- a/drivers/usb/serial/navman.c +++ b/drivers/usb/serial/navman.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <linux/usb.h> | 21 | #include <linux/usb.h> |
22 | #include <linux/usb/serial.h> | 22 | #include <linux/usb/serial.h> |
23 | 23 | ||
24 | static int debug; | 24 | static bool debug; |
25 | 25 | ||
26 | static const struct usb_device_id id_table[] = { | 26 | static const struct usb_device_id id_table[] = { |
27 | { USB_DEVICE(0x0a99, 0x0001) }, /* Talon Technology device */ | 27 | { USB_DEVICE(0x0a99, 0x0001) }, /* Talon Technology device */ |
diff --git a/drivers/usb/serial/omninet.c b/drivers/usb/serial/omninet.c index 45a8c55881d3..8b8d58a2ac12 100644 --- a/drivers/usb/serial/omninet.c +++ b/drivers/usb/serial/omninet.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <linux/usb.h> | 23 | #include <linux/usb.h> |
24 | #include <linux/usb/serial.h> | 24 | #include <linux/usb/serial.h> |
25 | 25 | ||
26 | static int debug; | 26 | static bool debug; |
27 | 27 | ||
28 | /* | 28 | /* |
29 | * Version Information | 29 | * Version Information |
diff --git a/drivers/usb/serial/opticon.c b/drivers/usb/serial/opticon.c index 691f57a9d712..262ded9e076b 100644 --- a/drivers/usb/serial/opticon.c +++ b/drivers/usb/serial/opticon.c | |||
@@ -32,7 +32,7 @@ | |||
32 | * an examples of 1D barcode types are EAN, UPC, Code39, IATA etc.. */ | 32 | * an examples of 1D barcode types are EAN, UPC, Code39, IATA etc.. */ |
33 | #define DRIVER_DESC "Opticon USB barcode to serial driver (1D)" | 33 | #define DRIVER_DESC "Opticon USB barcode to serial driver (1D)" |
34 | 34 | ||
35 | static int debug; | 35 | static bool debug; |
36 | 36 | ||
37 | static const struct usb_device_id id_table[] = { | 37 | static const struct usb_device_id id_table[] = { |
38 | { USB_DEVICE(0x065a, 0x0009) }, | 38 | { USB_DEVICE(0x065a, 0x0009) }, |
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index c96b6b6509fb..420d9857394a 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c | |||
@@ -1234,7 +1234,7 @@ static struct usb_serial_driver option_1port_device = { | |||
1234 | #endif | 1234 | #endif |
1235 | }; | 1235 | }; |
1236 | 1236 | ||
1237 | static int debug; | 1237 | static bool debug; |
1238 | 1238 | ||
1239 | /* per port private data */ | 1239 | /* per port private data */ |
1240 | 1240 | ||
diff --git a/drivers/usb/serial/oti6858.c b/drivers/usb/serial/oti6858.c index 2161d1c3c089..e287fd32682c 100644 --- a/drivers/usb/serial/oti6858.c +++ b/drivers/usb/serial/oti6858.c | |||
@@ -74,7 +74,7 @@ static struct usb_driver oti6858_driver = { | |||
74 | .no_dynamic_id = 1, | 74 | .no_dynamic_id = 1, |
75 | }; | 75 | }; |
76 | 76 | ||
77 | static int debug; | 77 | static bool debug; |
78 | 78 | ||
79 | /* requests */ | 79 | /* requests */ |
80 | #define OTI6858_REQ_GET_STATUS (USB_DIR_IN | USB_TYPE_VENDOR | 0x00) | 80 | #define OTI6858_REQ_GET_STATUS (USB_DIR_IN | USB_TYPE_VENDOR | 0x00) |
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 329295615d06..3d8cda57ce7a 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c | |||
@@ -36,7 +36,7 @@ | |||
36 | */ | 36 | */ |
37 | #define DRIVER_DESC "Prolific PL2303 USB to serial adaptor driver" | 37 | #define DRIVER_DESC "Prolific PL2303 USB to serial adaptor driver" |
38 | 38 | ||
39 | static int debug; | 39 | static bool debug; |
40 | 40 | ||
41 | #define PL2303_CLOSING_WAIT (30*HZ) | 41 | #define PL2303_CLOSING_WAIT (30*HZ) |
42 | 42 | ||
diff --git a/drivers/usb/serial/qcserial.c b/drivers/usb/serial/qcserial.c index aa9367f5b421..1d5deee3be52 100644 --- a/drivers/usb/serial/qcserial.c +++ b/drivers/usb/serial/qcserial.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #define DRIVER_AUTHOR "Qualcomm Inc" | 22 | #define DRIVER_AUTHOR "Qualcomm Inc" |
23 | #define DRIVER_DESC "Qualcomm USB Serial driver" | 23 | #define DRIVER_DESC "Qualcomm USB Serial driver" |
24 | 24 | ||
25 | static int debug; | 25 | static bool debug; |
26 | 26 | ||
27 | static const struct usb_device_id id_table[] = { | 27 | static const struct usb_device_id id_table[] = { |
28 | {USB_DEVICE(0x05c6, 0x9211)}, /* Acer Gobi QDL device */ | 28 | {USB_DEVICE(0x05c6, 0x9211)}, /* Acer Gobi QDL device */ |
diff --git a/drivers/usb/serial/safe_serial.c b/drivers/usb/serial/safe_serial.c index a36e2313eed0..d074b3740dcb 100644 --- a/drivers/usb/serial/safe_serial.c +++ b/drivers/usb/serial/safe_serial.c | |||
@@ -81,9 +81,9 @@ | |||
81 | #define CONFIG_USB_SERIAL_SAFE_PADDED 0 | 81 | #define CONFIG_USB_SERIAL_SAFE_PADDED 0 |
82 | #endif | 82 | #endif |
83 | 83 | ||
84 | static int debug; | 84 | static bool debug; |
85 | static int safe = 1; | 85 | static bool safe = 1; |
86 | static int padded = CONFIG_USB_SERIAL_SAFE_PADDED; | 86 | static bool padded = CONFIG_USB_SERIAL_SAFE_PADDED; |
87 | 87 | ||
88 | #define DRIVER_VERSION "v0.1" | 88 | #define DRIVER_VERSION "v0.1" |
89 | #define DRIVER_AUTHOR "sl@lineo.com, tbr@lineo.com, Johan Hovold <jhovold@gmail.com>" | 89 | #define DRIVER_AUTHOR "sl@lineo.com, tbr@lineo.com, Johan Hovold <jhovold@gmail.com>" |
diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index f2485429172f..fdae0a4407cb 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c | |||
@@ -46,8 +46,8 @@ | |||
46 | allocations > PAGE_SIZE and the number of packets in a page | 46 | allocations > PAGE_SIZE and the number of packets in a page |
47 | is an integer 512 is the largest possible packet on EHCI */ | 47 | is an integer 512 is the largest possible packet on EHCI */ |
48 | 48 | ||
49 | static int debug; | 49 | static bool debug; |
50 | static int nmea; | 50 | static bool nmea; |
51 | 51 | ||
52 | /* Used in interface blacklisting */ | 52 | /* Used in interface blacklisting */ |
53 | struct sierra_iface_info { | 53 | struct sierra_iface_info { |
diff --git a/drivers/usb/serial/spcp8x5.c b/drivers/usb/serial/spcp8x5.c index 180ea6c7911c..d7f5eee18f00 100644 --- a/drivers/usb/serial/spcp8x5.c +++ b/drivers/usb/serial/spcp8x5.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #define DRIVER_VERSION "v0.10" | 33 | #define DRIVER_VERSION "v0.10" |
34 | #define DRIVER_DESC "SPCP8x5 USB to serial adaptor driver" | 34 | #define DRIVER_DESC "SPCP8x5 USB to serial adaptor driver" |
35 | 35 | ||
36 | static int debug; | 36 | static bool debug; |
37 | 37 | ||
38 | #define SPCP8x5_007_VID 0x04FC | 38 | #define SPCP8x5_007_VID 0x04FC |
39 | #define SPCP8x5_007_PID 0x0201 | 39 | #define SPCP8x5_007_PID 0x0201 |
diff --git a/drivers/usb/serial/ssu100.c b/drivers/usb/serial/ssu100.c index 87362e48796e..7697858d8858 100644 --- a/drivers/usb/serial/ssu100.c +++ b/drivers/usb/serial/ssu100.c | |||
@@ -46,7 +46,7 @@ | |||
46 | #define FULLPWRBIT 0x00000080 | 46 | #define FULLPWRBIT 0x00000080 |
47 | #define NEXT_BOARD_POWER_BIT 0x00000004 | 47 | #define NEXT_BOARD_POWER_BIT 0x00000004 |
48 | 48 | ||
49 | static int debug; | 49 | static bool debug; |
50 | 50 | ||
51 | /* Version Information */ | 51 | /* Version Information */ |
52 | #define DRIVER_VERSION "v0.1" | 52 | #define DRIVER_VERSION "v0.1" |
diff --git a/drivers/usb/serial/symbolserial.c b/drivers/usb/serial/symbolserial.c index c70cc012d03f..50651cf4fc61 100644 --- a/drivers/usb/serial/symbolserial.c +++ b/drivers/usb/serial/symbolserial.c | |||
@@ -20,7 +20,7 @@ | |||
20 | #include <linux/usb/serial.h> | 20 | #include <linux/usb/serial.h> |
21 | #include <linux/uaccess.h> | 21 | #include <linux/uaccess.h> |
22 | 22 | ||
23 | static int debug; | 23 | static bool debug; |
24 | 24 | ||
25 | static const struct usb_device_id id_table[] = { | 25 | static const struct usb_device_id id_table[] = { |
26 | { USB_DEVICE(0x05e0, 0x0600) }, | 26 | { USB_DEVICE(0x05e0, 0x0600) }, |
diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c index 4af21f46096e..8468eb769a29 100644 --- a/drivers/usb/serial/ti_usb_3410_5052.c +++ b/drivers/usb/serial/ti_usb_3410_5052.c | |||
@@ -150,7 +150,7 @@ static int ti_download_firmware(struct ti_device *tdev); | |||
150 | /* Data */ | 150 | /* Data */ |
151 | 151 | ||
152 | /* module parameters */ | 152 | /* module parameters */ |
153 | static int debug; | 153 | static bool debug; |
154 | static int closing_wait = TI_DEFAULT_CLOSING_WAIT; | 154 | static int closing_wait = TI_DEFAULT_CLOSING_WAIT; |
155 | static ushort vendor_3410[TI_EXTRA_VID_PID_COUNT]; | 155 | static ushort vendor_3410[TI_EXTRA_VID_PID_COUNT]; |
156 | static unsigned int vendor_3410_count; | 156 | static unsigned int vendor_3410_count; |
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index ce6c1a65a544..611b206591cb 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -61,7 +61,7 @@ static struct usb_driver usb_serial_driver = { | |||
61 | drivers depend on it. | 61 | drivers depend on it. |
62 | */ | 62 | */ |
63 | 63 | ||
64 | static int debug; | 64 | static bool debug; |
65 | /* initially all NULL */ | 65 | /* initially all NULL */ |
66 | static struct usb_serial *serial_table[SERIAL_TTY_MINORS]; | 66 | static struct usb_serial *serial_table[SERIAL_TTY_MINORS]; |
67 | static DEFINE_MUTEX(table_lock); | 67 | static DEFINE_MUTEX(table_lock); |
diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_wwan.c index d555ca9567b8..c88657dd31c8 100644 --- a/drivers/usb/serial/usb_wwan.c +++ b/drivers/usb/serial/usb_wwan.c | |||
@@ -37,7 +37,7 @@ | |||
37 | #include <linux/serial.h> | 37 | #include <linux/serial.h> |
38 | #include "usb-wwan.h" | 38 | #include "usb-wwan.h" |
39 | 39 | ||
40 | static int debug; | 40 | static bool debug; |
41 | 41 | ||
42 | void usb_wwan_dtr_rts(struct usb_serial_port *port, int on) | 42 | void usb_wwan_dtr_rts(struct usb_serial_port *port, int on) |
43 | { | 43 | { |
diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c index 1c11959a7d58..210e4b10dc11 100644 --- a/drivers/usb/serial/visor.c +++ b/drivers/usb/serial/visor.c | |||
@@ -52,7 +52,7 @@ static int palm_os_4_probe(struct usb_serial *serial, | |||
52 | const struct usb_device_id *id); | 52 | const struct usb_device_id *id); |
53 | 53 | ||
54 | /* Parameters that may be passed into the module. */ | 54 | /* Parameters that may be passed into the module. */ |
55 | static int debug; | 55 | static bool debug; |
56 | static __u16 vendor; | 56 | static __u16 vendor; |
57 | static __u16 product; | 57 | static __u16 product; |
58 | 58 | ||
diff --git a/drivers/usb/serial/whiteheat.c b/drivers/usb/serial/whiteheat.c index 11af903cb09f..7e0acf5c8e38 100644 --- a/drivers/usb/serial/whiteheat.c +++ b/drivers/usb/serial/whiteheat.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #include <linux/ihex.h> | 36 | #include <linux/ihex.h> |
37 | #include "whiteheat.h" /* WhiteHEAT specific commands */ | 37 | #include "whiteheat.h" /* WhiteHEAT specific commands */ |
38 | 38 | ||
39 | static int debug; | 39 | static bool debug; |
40 | 40 | ||
41 | #ifndef CMSPAR | 41 | #ifndef CMSPAR |
42 | #define CMSPAR 0 | 42 | #define CMSPAR 0 |