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
4b378dd8
Commit
4b378dd8
authored
Jan 10, 2003
by
Dave Jones
Committed by
Dave Jones
Jan 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WATCHDOG] eurotech nowayout fixes from 2.4
parent
8ec11413
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
drivers/char/watchdog/eurotechwdt.c
drivers/char/watchdog/eurotechwdt.c
+14
-0
No files found.
drivers/char/watchdog/eurotechwdt.c
View file @
4b378dd8
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
static
int
eurwdt_is_open
;
static
int
eurwdt_is_open
;
static
spinlock_t
eurwdt_lock
;
static
spinlock_t
eurwdt_lock
;
static
char
eur_expect_close
;
/*
/*
* You must set these - there is no sane way to probe for this board.
* You must set these - there is no sane way to probe for this board.
...
@@ -235,6 +236,19 @@ loff_t *ppos)
...
@@ -235,6 +236,19 @@ loff_t *ppos)
return
-
ESPIPE
;
return
-
ESPIPE
;
if
(
count
)
{
if
(
count
)
{
if
(
!
nowayout
)
{
size_t
i
;
eur_expect_close
=
0
;
for
(
i
=
0
;
i
!=
count
;
i
++
)
{
char
c
;
if
(
get_user
(
c
,
buf
+
i
))
return
-
EFAULT
;
if
(
c
==
'V'
)
eur_expect_close
=
42
;
}
}
eurwdt_ping
();
/* the default timeout */
eurwdt_ping
();
/* the default timeout */
return
1
;
return
1
;
}
}
...
...
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