mtd/drivers/mtd ftl.c,1.45,1.46 mtdchar.c,1.51,1.52 nftlcore.c,1.87,1.88
joern at infradead.org
joern at infradead.org
Sun Mar 2 13:45:10 EST 2003
Update of /home/cvs/mtd/drivers/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv16259/drivers/mtd
Modified Files:
ftl.c mtdchar.c nftlcore.c
Log Message:
Citing Art Haas:
Here is a set of patches for converting files in drivers/mtd to use C99
initializers.
Index: ftl.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/ftl.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- ftl.c 24 Jan 2003 23:31:27 -0000 1.45
+++ ftl.c 2 Mar 2003 18:45:07 -0000 1.46
@@ -190,8 +190,8 @@
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 */
Index: mtdchar.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/mtdchar.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -r1.51 -r1.52
--- mtdchar.c 18 Feb 2003 20:53:53 -0000 1.51
+++ mtdchar.c 2 Mar 2003 18:45:07 -0000 1.52
@@ -18,8 +18,8 @@
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,
};
static devfs_handle_t devfs_dir_handle;
@@ -458,13 +458,13 @@
} /* 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 */
};
Index: nftlcore.c
===================================================================
RCS file: /home/cvs/mtd/drivers/mtd/nftlcore.c,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -r1.87 -r1.88
--- nftlcore.c 13 Sep 2002 14:35:33 -0000 1.87
+++ nftlcore.c 2 Mar 2003 18:45:07 -0000 1.88
@@ -1049,8 +1049,8 @@
****************************************************************************/
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[];
More information about the linux-mtd-cvs
mailing list