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
0e02e111
Commit
0e02e111
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] Acquirewdt C99 struct initialisers.
parent
6bf07a2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
drivers/char/watchdog/acquirewdt.c
drivers/char/watchdog/acquirewdt.c
+13
-13
No files found.
drivers/char/watchdog/acquirewdt.c
View file @
0e02e111
...
@@ -79,10 +79,8 @@ static ssize_t acq_write(struct file *file, const char *buf, size_t count, loff_
...
@@ -79,10 +79,8 @@ static ssize_t acq_write(struct file *file, const char *buf, size_t count, loff_
if
(
ppos
!=
&
file
->
f_pos
)
if
(
ppos
!=
&
file
->
f_pos
)
return
-
ESPIPE
;
return
-
ESPIPE
;
if
(
count
)
if
(
count
)
{
{
if
(
!
nowayout
)
{
if
(
!
nowayout
)
{
size_t
i
;
size_t
i
;
expect_close
=
0
;
expect_close
=
0
;
...
@@ -111,9 +109,11 @@ static ssize_t acq_read(struct file *file, char *buf, size_t count, loff_t *ppos
...
@@ -111,9 +109,11 @@ static ssize_t acq_read(struct file *file, char *buf, size_t count, loff_t *ppos
static
int
acq_ioctl
(
struct
inode
*
inode
,
struct
file
*
file
,
unsigned
int
cmd
,
static
int
acq_ioctl
(
struct
inode
*
inode
,
struct
file
*
file
,
unsigned
int
cmd
,
unsigned
long
arg
)
unsigned
long
arg
)
{
{
static
struct
watchdog_info
ident
=
static
struct
watchdog_info
ident
=
{
{
WDIOF_KEEPALIVEPING
|
WDIOF_MAGICCLOSE
,
1
,
"Acquire WDT"
.
options
=
WDIOF_KEEPALIVEPING
|
WDIOF_MAGICCLOSE
,
.
firmware_version
=
1
,
.
identity
=
"Acquire WDT"
};
};
switch
(
cmd
)
switch
(
cmd
)
...
@@ -205,9 +205,9 @@ static struct file_operations acq_fops = {
...
@@ -205,9 +205,9 @@ static struct file_operations acq_fops = {
static
struct
miscdevice
acq_miscdev
=
static
struct
miscdevice
acq_miscdev
=
{
{
WATCHDOG_MINOR
,
.
minor
=
WATCHDOG_MINOR
,
"watchdog"
,
.
name
=
"watchdog"
,
&
acq_fops
.
fops
=
&
acq_fops
};
};
...
@@ -216,11 +216,11 @@ static struct miscdevice acq_miscdev=
...
@@ -216,11 +216,11 @@ static struct miscdevice acq_miscdev=
* turn the timebomb registers off.
* turn the timebomb registers off.
*/
*/
static
struct
notifier_block
acq_notifier
=
static
struct
notifier_block
acq_notifier
=
{
{
acq_notify_sys
,
.
notifier_call
=
acq_notify_sys
,
NULL
,
.
next
=
NULL
,
0
.
priority
=
0
};
};
static
int
__init
acq_init
(
void
)
static
int
__init
acq_init
(
void
)
...
...
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