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
nexedi
linux
Commits
99e13f8b
Commit
99e13f8b
authored
Sep 01, 2003
by
Wim Van Sebroeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WATCHDOG] wafer5823wdt.c - patch3
fix MODULE_PARM_DESC for timeout add WDIOC_SETOPTIONS functionality
parent
e73ae66c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
drivers/char/watchdog/wafer5823wdt.c
drivers/char/watchdog/wafer5823wdt.c
+21
-1
No files found.
drivers/char/watchdog/wafer5823wdt.c
View file @
99e13f8b
...
...
@@ -66,7 +66,7 @@ MODULE_PARM_DESC(wdt_start, "Wafer 5823 WDT 'start' io port (default 0x443)");
static
int
timeout
=
WD_TIMO
;
/* in seconds */
module_param
(
timeout
,
int
,
0
);
MODULE_PARM_DESC
(
timeout
,
"Watchdog timeout in seconds. 1<= timeout <=255, default="
__MODULE_STRING
(
W
ATCHDOG_TIMEOUT
)
"."
);
MODULE_PARM_DESC
(
timeout
,
"Watchdog timeout in seconds. 1<= timeout <=255, default="
__MODULE_STRING
(
W
D_TIMO
)
"."
);
#ifdef CONFIG_WATCHDOG_NOWAYOUT
static
int
nowayout
=
1
;
...
...
@@ -166,6 +166,26 @@ static int wafwdt_ioctl(struct inode *inode, struct file *file, unsigned int cmd
case
WDIOC_GETTIMEOUT
:
return
put_user
(
timeout
,
(
int
*
)
arg
);
case
WDIOC_SETOPTIONS
:
{
int
options
,
retval
=
-
EINVAL
;
if
(
get_user
(
options
,
(
int
*
)
arg
))
return
-
EFAULT
;
if
(
options
&
WDIOS_DISABLECARD
)
{
wafwdt_start
();
retval
=
0
;
}
if
(
options
&
WDIOS_ENABLECARD
)
{
wafwdt_stop
();
retval
=
0
;
}
return
retval
;
}
default:
return
-
ENOTTY
;
}
...
...
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