Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
bb965572
Commit
bb965572
authored
Jul 14, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: change all usbserial drivers to use module_param()
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
be3a4fef
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
35 additions
and
44 deletions
+35
-44
drivers/usb/serial/belkin_sa.c
drivers/usb/serial/belkin_sa.c
+1
-2
drivers/usb/serial/cyberjack.c
drivers/usb/serial/cyberjack.c
+1
-2
drivers/usb/serial/digi_acceleport.c
drivers/usb/serial/digi_acceleport.c
+1
-2
drivers/usb/serial/empeg.c
drivers/usb/serial/empeg.c
+1
-2
drivers/usb/serial/ftdi_sio.c
drivers/usb/serial/ftdi_sio.c
+1
-1
drivers/usb/serial/io_edgeport.c
drivers/usb/serial/io_edgeport.c
+1
-2
drivers/usb/serial/io_ti.c
drivers/usb/serial/io_ti.c
+2
-2
drivers/usb/serial/ipaq.c
drivers/usb/serial/ipaq.c
+4
-4
drivers/usb/serial/ir-usb.c
drivers/usb/serial/ir-usb.c
+3
-3
drivers/usb/serial/keyspan.c
drivers/usb/serial/keyspan.c
+1
-1
drivers/usb/serial/keyspan_pda.c
drivers/usb/serial/keyspan_pda.c
+1
-1
drivers/usb/serial/kl5kusb105.c
drivers/usb/serial/kl5kusb105.c
+1
-5
drivers/usb/serial/kobil_sct.c
drivers/usb/serial/kobil_sct.c
+1
-1
drivers/usb/serial/mct_u232.c
drivers/usb/serial/mct_u232.c
+2
-2
drivers/usb/serial/omninet.c
drivers/usb/serial/omninet.c
+1
-2
drivers/usb/serial/safe_serial.c
drivers/usb/serial/safe_serial.c
+11
-10
drivers/usb/serial/whiteheat.c
drivers/usb/serial/whiteheat.c
+2
-2
No files found.
drivers/usb/serial/belkin_sa.c
View file @
bb965572
...
...
@@ -614,6 +614,5 @@ MODULE_AUTHOR( DRIVER_AUTHOR );
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM
(
debug
,
"i"
);
module_param
(
debug
,
bool
,
S_IRUGO
|
S_IWUSR
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
drivers/usb/serial/cyberjack.c
View file @
bb965572
...
...
@@ -520,6 +520,5 @@ MODULE_AUTHOR( DRIVER_AUTHOR );
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM
(
debug
,
"i"
);
module_param
(
debug
,
bool
,
S_IRUGO
|
S_IWUSR
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
drivers/usb/serial/digi_acceleport.c
View file @
bb965572
...
...
@@ -2068,6 +2068,5 @@ MODULE_AUTHOR( DRIVER_AUTHOR );
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM
(
debug
,
"i"
);
module_param
(
debug
,
bool
,
S_IRUGO
|
S_IWUSR
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
drivers/usb/serial/empeg.c
View file @
bb965572
...
...
@@ -609,6 +609,5 @@ MODULE_AUTHOR( DRIVER_AUTHOR );
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM
(
debug
,
"i"
);
module_param
(
debug
,
bool
,
S_IRUGO
|
S_IWUSR
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
drivers/usb/serial/ftdi_sio.c
View file @
bb965572
...
...
@@ -2241,6 +2241,6 @@ MODULE_AUTHOR( DRIVER_AUTHOR );
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM
(
debug
,
"i"
);
module_param
(
debug
,
bool
,
S_IRUGO
|
S_IWUSR
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
drivers/usb/serial/io_edgeport.c
View file @
bb965572
...
...
@@ -3074,6 +3074,5 @@ MODULE_AUTHOR( DRIVER_AUTHOR );
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM
(
debug
,
"i"
);
module_param
(
debug
,
bool
,
S_IRUGO
|
S_IWUSR
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
drivers/usb/serial/io_ti.c
View file @
bb965572
...
...
@@ -2684,9 +2684,9 @@ MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM
(
debug
,
"i"
);
module_param
(
debug
,
bool
,
S_IRUGO
|
S_IWUSR
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
MODULE_PARM
(
ignore_cpu_rev
,
"i"
);
module_param
(
ignore_cpu_rev
,
bool
,
S_IRUGO
|
S_IWUSR
);
MODULE_PARM_DESC
(
ignore_cpu_rev
,
"Ignore the cpu revision when connecting to a device"
);
drivers/usb/serial/ipaq.c
View file @
bb965572
...
...
@@ -76,7 +76,7 @@
#define DRIVER_AUTHOR "Ganesh Varadarajan <ganesh@veritas.com>"
#define DRIVER_DESC "USB PocketPC PDA driver"
static
int
product
,
vendor
;
static
__u16
product
,
vendor
;
/* Function prototypes for an ipaq */
static
int
ipaq_open
(
struct
usb_serial_port
*
port
,
struct
file
*
filp
);
...
...
@@ -579,11 +579,11 @@ MODULE_AUTHOR( DRIVER_AUTHOR );
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM
(
debug
,
"i"
);
module_param
(
debug
,
bool
,
S_IRUGO
|
S_IWUSR
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
MODULE_PARM
(
vendor
,
"h"
);
module_param
(
vendor
,
ushort
,
0
);
MODULE_PARM_DESC
(
vendor
,
"User specified USB idVendor"
);
MODULE_PARM
(
product
,
"h"
);
module_param
(
product
,
ushort
,
0
);
MODULE_PARM_DESC
(
product
,
"User specified USB idProduct"
);
drivers/usb/serial/ir-usb.c
View file @
bb965572
...
...
@@ -614,10 +614,10 @@ MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM
(
debug
,
"i"
);
module_param
(
debug
,
bool
,
S_IRUGO
|
S_IWUSR
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
MODULE_PARM
(
xbof
,
"i"
);
module_param
(
xbof
,
int
,
0
);
MODULE_PARM_DESC
(
xbof
,
"Force specific number of XBOFs"
);
MODULE_PARM
(
buffer_size
,
"i"
);
module_param
(
buffer_size
,
int
,
0
);
MODULE_PARM_DESC
(
buffer_size
,
"Size of the transfer buffers"
);
drivers/usb/serial/keyspan.c
View file @
bb965572
...
...
@@ -2362,6 +2362,6 @@ MODULE_AUTHOR( DRIVER_AUTHOR );
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM
(
debug
,
"i"
);
module_param
(
debug
,
bool
,
S_IRUGO
|
S_IWUSR
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
drivers/usb/serial/keyspan_pda.c
View file @
bb965572
...
...
@@ -909,6 +909,6 @@ MODULE_AUTHOR( DRIVER_AUTHOR );
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM
(
debug
,
"i"
);
module_param
(
debug
,
bool
,
S_IRUGO
|
S_IWUSR
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
drivers/usb/serial/kl5kusb105.c
View file @
bb965572
...
...
@@ -1051,11 +1051,7 @@ MODULE_DESCRIPTION( DRIVER_DESC );
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM
(
debug
,
"i"
);
module_param
(
debug
,
bool
,
S_IRUGO
|
S_IWUSR
);
MODULE_PARM_DESC
(
debug
,
"enable extensive debugging messages"
);
/* FIXME: implement
MODULE_PARM(num_urbs, "i");
MODULE_PARM_DESC(num_urbs, "number of URBs to use in write pool");
*/
/* vim: set sts=8 ts=8 sw=8: */
drivers/usb/serial/kobil_sct.c
View file @
bb965572
...
...
@@ -788,5 +788,5 @@ MODULE_AUTHOR( DRIVER_AUTHOR );
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM
(
debug
,
"i"
);
module_param
(
debug
,
bool
,
S_IRUGO
|
S_IWUSR
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
drivers/usb/serial/mct_u232.c
View file @
bb965572
...
...
@@ -912,11 +912,11 @@ MODULE_DESCRIPTION( DRIVER_DESC );
MODULE_LICENSE
(
"GPL"
);
#ifdef FIX_WRITE_RETURN_CODE_PROBLEM
MODULE_PARM
(
write_blocking
,
"i"
);
module_param
(
write_blocking
,
int
,
0
);
MODULE_PARM_DESC
(
write_blocking
,
"The write function will block to write out all data"
);
#endif
MODULE_PARM
(
debug
,
"i"
);
module_param
(
debug
,
bool
,
S_IRUGO
|
S_IWUSR
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
drivers/usb/serial/omninet.c
View file @
bb965572
...
...
@@ -373,6 +373,5 @@ MODULE_AUTHOR( DRIVER_AUTHOR );
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM
(
debug
,
"i"
);
module_param
(
debug
,
bool
,
S_IRUGO
|
S_IWUSR
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
drivers/usb/serial/safe_serial.c
View file @
bb965572
...
...
@@ -102,19 +102,20 @@ MODULE_LICENSE("GPL");
#if ! defined(CONFIG_USBD_SAFE_SERIAL_VENDOR)
static
__u16
vendor
;
// no default
static
__u16
product
;
// no default
MODULE_PARM
(
vendor
,
"i"
);
MODULE_PARM
(
product
,
"i
"
);
MODULE_PARM_DESC
(
vendor
,
"User specified USB idVendor (required)"
);
MODULE_PARM_DESC
(
product
,
"User specified USB idProduct (required)"
);
module_param
(
vendor
,
ushort
,
0
);
MODULE_PARM
_DESC
(
vendor
,
"User specified USB idVendor (required)
"
);
module_param
(
product
,
ushort
,
0
);
MODULE_PARM_DESC
(
product
,
"User specified USB idProduct (required)"
);
#endif
MODULE_PARM
(
debug
,
"i"
);
MODULE_PARM
(
safe
,
"i"
);
MODULE_PARM
(
padded
,
"i"
);
module_param
(
debug
,
bool
,
S_IRUGO
|
S_IWUSR
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
MODULE_PARM_DESC
(
safe
,
"Turn Safe Encapsulation On/Off"
);
MODULE_PARM_DESC
(
padded
,
"Pad to full wMaxPacketSize On/Off"
);
module_param
(
safe
,
bool
,
0
);
MODULE_PARM_DESC
(
safe
,
"Turn Safe Encapsulation On/Off"
);
module_param
(
padded
,
bool
,
0
);
MODULE_PARM_DESC
(
padded
,
"Pad to full wMaxPacketSize On/Off"
);
#define CDC_DEVICE_CLASS 0x02
...
...
drivers/usb/serial/whiteheat.c
View file @
bb965572
...
...
@@ -1519,8 +1519,8 @@ MODULE_AUTHOR( DRIVER_AUTHOR );
MODULE_DESCRIPTION
(
DRIVER_DESC
);
MODULE_LICENSE
(
"GPL"
);
MODULE_PARM
(
urb_pool_size
,
"i"
);
module_param
(
urb_pool_size
,
int
,
0
);
MODULE_PARM_DESC
(
urb_pool_size
,
"Number of urbs to use for buffering"
);
MODULE_PARM
(
debug
,
"i"
);
module_param
(
debug
,
bool
,
S_IRUGO
|
S_IWUSR
);
MODULE_PARM_DESC
(
debug
,
"Debug enabled or not"
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment