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
c6ad60b9
Commit
c6ad60b9
authored
Feb 26, 2003
by
Art Haas
Committed by
Linus Torvalds
Feb 26, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] C99 initializers for drivers/mtd files
parent
da3922ef
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
drivers/mtd/ftl.c
drivers/mtd/ftl.c
+2
-2
drivers/mtd/mtdchar.c
drivers/mtd/mtdchar.c
+9
-9
drivers/mtd/nftlcore.c
drivers/mtd/nftlcore.c
+2
-2
No files found.
drivers/mtd/ftl.c
View file @
c6ad60b9
...
...
@@ -155,8 +155,8 @@ static void ftl_notify_remove(struct mtd_info *mtd);
void
ftl_freepart
(
partition_t
*
part
);
static
struct
mtd_notifier
ftl_notifier
=
{
add:
ftl_notify_add
,
remove:
ftl_notify_remove
,
.
add
=
ftl_notify_add
,
.
remove
=
ftl_notify_remove
,
};
/* Partition state flags */
...
...
drivers/mtd/mtdchar.c
View file @
c6ad60b9
...
...
@@ -19,8 +19,8 @@ static void mtd_notify_add(struct mtd_info* mtd);
static
void
mtd_notify_remove
(
struct
mtd_info
*
mtd
);
static
struct
mtd_notifier
notifier
=
{
add:
mtd_notify_add
,
remove:
mtd_notify_remove
,
.
add
=
mtd_notify_add
,
.
remove
=
mtd_notify_remove
,
};
#endif
...
...
@@ -445,13 +445,13 @@ static int mtd_ioctl(struct inode *inode, struct file *file,
}
/* memory_ioctl */
static
struct
file_operations
mtd_fops
=
{
owner:
THIS_MODULE
,
llseek:
mtd_lseek
,
/* lseek */
read:
mtd_read
,
/* read */
write:
mtd_write
,
/* write */
ioctl:
mtd_ioctl
,
/* ioctl */
open:
mtd_open
,
/* open */
release:
mtd_close
,
/* release */
.
owner
=
THIS_MODULE
,
.
llseek
=
mtd_lseek
,
/* lseek */
.
read
=
mtd_read
,
/* read */
.
write
=
mtd_write
,
/* write */
.
ioctl
=
mtd_ioctl
,
/* ioctl */
.
open
=
mtd_open
,
/* open */
.
release
=
mtd_close
,
/* release */
};
...
...
drivers/mtd/nftlcore.c
View file @
c6ad60b9
...
...
@@ -914,8 +914,8 @@ static struct block_device_operations nftl_fops =
****************************************************************************/
static
struct
mtd_notifier
nftl_notifier
=
{
add:
NFTL_notify_add
,
remove:
NFTL_notify_remove
.
add
=
NFTL_notify_add
,
.
remove
=
NFTL_notify_remove
};
extern
char
nftlmountrev
[];
...
...
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