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
02eb8c10
Commit
02eb8c10
authored
May 14, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
USB: change usbserial core to use module_param()
parent
e044323a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
drivers/usb/serial/generic.c
drivers/usb/serial/generic.c
+3
-2
drivers/usb/serial/usb-serial.c
drivers/usb/serial/usb-serial.c
+3
-2
No files found.
drivers/usb/serial/generic.c
View file @
02eb8c10
...
...
@@ -16,6 +16,7 @@
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/usb.h>
#include <asm/uaccess.h>
...
...
@@ -32,10 +33,10 @@
static
__u16
vendor
=
0x05f9
;
static
__u16
product
=
0xffff
;
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"
);
static
struct
usb_device_id
generic_device_ids
[
2
];
/* Initially all zeroes. */
...
...
drivers/usb/serial/usb-serial.c
View file @
02eb8c10
/*
* USB Serial Converter driver
*
* Copyright (C) 1999 - 200
3
Greg Kroah-Hartman (greg@kroah.com)
* Copyright (C) 1999 - 200
4
Greg Kroah-Hartman (greg@kroah.com)
* Copyright (C) 2000 Peter Berger (pberger@brimson.com)
* Copyright (C) 2000 Al Borchers (borchers@steinerpoint.com)
*
...
...
@@ -330,6 +330,7 @@
#include <linux/tty_driver.h>
#include <linux/tty_flip.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/spinlock.h>
#include <linux/list.h>
#include <linux/smp_lock.h>
...
...
@@ -1409,5 +1410,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"
);
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