Commit 086a716c authored by Patrick Mochel's avatar Patrick Mochel

Use C99 initializers in driverfs

parent 89988159
...@@ -416,36 +416,36 @@ static int driverfs_d_delete_file (struct dentry * dentry) ...@@ -416,36 +416,36 @@ static int driverfs_d_delete_file (struct dentry * dentry)
} }
static struct file_operations driverfs_file_operations = { static struct file_operations driverfs_file_operations = {
read: driverfs_read_file, .read = driverfs_read_file,
write: driverfs_write_file, .write = driverfs_write_file,
llseek: driverfs_file_lseek, .llseek = driverfs_file_lseek,
open: driverfs_open_file, .open = driverfs_open_file,
release: driverfs_release, .release = driverfs_release,
}; };
static struct inode_operations driverfs_dir_inode_operations = { static struct inode_operations driverfs_dir_inode_operations = {
create: driverfs_create, .create = driverfs_create,
lookup: simple_lookup, .lookup = simple_lookup,
unlink: driverfs_unlink, .unlink = driverfs_unlink,
symlink: driverfs_symlink, .symlink = driverfs_symlink,
mkdir: driverfs_mkdir, .mkdir = driverfs_mkdir,
rmdir: driverfs_rmdir, .rmdir = driverfs_rmdir,
}; };
static struct address_space_operations driverfs_aops = { static struct address_space_operations driverfs_aops = {
readpage: driverfs_readpage, .readpage = driverfs_readpage,
writepage: fail_writepage, .writepage = fail_writepage,
prepare_write: driverfs_prepare_write, .prepare_write = driverfs_prepare_write,
commit_write: driverfs_commit_write .commit_write = driverfs_commit_write
}; };
static struct dentry_operations driverfs_dentry_file_ops = { static struct dentry_operations driverfs_dentry_file_ops = {
d_delete: driverfs_d_delete_file, .d_delete = driverfs_d_delete_file,
}; };
static struct super_operations driverfs_ops = { static struct super_operations driverfs_ops = {
statfs: simple_statfs, .statfs = simple_statfs,
drop_inode: generic_delete_inode, .drop_inode = generic_delete_inode,
}; };
static int driverfs_fill_super(struct super_block *sb, void *data, int silent) static int driverfs_fill_super(struct super_block *sb, void *data, int silent)
...@@ -481,10 +481,10 @@ static struct super_block *driverfs_get_sb(struct file_system_type *fs_type, ...@@ -481,10 +481,10 @@ static struct super_block *driverfs_get_sb(struct file_system_type *fs_type,
} }
static struct file_system_type driverfs_fs_type = { static struct file_system_type driverfs_fs_type = {
owner: THIS_MODULE, .owner = THIS_MODULE,
name: "driverfs", .name = "driverfs",
get_sb: driverfs_get_sb, .get_sb = driverfs_get_sb,
kill_sb: kill_litter_super, .kill_sb = kill_litter_super,
}; };
static int get_mount(void) static int get_mount(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment