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
b85bec13
Commit
b85bec13
authored
Jan 13, 2004
by
Tom Rini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] I2C: module_parm fixes for i2c-piix4.c
parent
4547e81c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
drivers/i2c/busses/i2c-piix4.c
drivers/i2c/busses/i2c-piix4.c
+4
-3
No files found.
drivers/i2c/busses/i2c-piix4.c
View file @
b85bec13
...
...
@@ -31,6 +31,7 @@
/* #define DEBUG 1 */
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/config.h>
#include <linux/pci.h>
#include <linux/kernel.h>
...
...
@@ -88,13 +89,13 @@ struct sd {
/* If force is set to anything different from 0, we forcibly enable the
PIIX4. DANGEROUS! */
static
int
force
=
0
;
MODULE_PARM
(
force
,
"i"
);
module_param
(
force
,
int
,
0
);
MODULE_PARM_DESC
(
force
,
"Forcibly enable the PIIX4. DANGEROUS!"
);
/* If force_addr is set to anything different from 0, we forcibly enable
the PIIX4 at the given address. VERY DANGEROUS! */
static
int
force_addr
=
0
;
MODULE_PARM
(
force_addr
,
"i"
);
module_param
(
force_addr
,
int
,
0
);
MODULE_PARM_DESC
(
force_addr
,
"Forcibly enable the PIIX4 at the given address. "
"EXTREMELY DANGEROUS!"
);
...
...
@@ -102,7 +103,7 @@ MODULE_PARM_DESC(force_addr,
/* If fix_hstcfg is set to anything different from 0, we reset one of the
registers to be a valid value. */
static
int
fix_hstcfg
=
0
;
MODULE_PARM
(
fix_hstcfg
,
"i"
);
module_param
(
fix_hstcfg
,
int
,
0
);
MODULE_PARM_DESC
(
fix_hstcfg
,
"Fix config register. Needed on some boards (Force CPCI735)."
);
...
...
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