Commit 482ae074 authored by Art Haas's avatar Art Haas Committed by David S. Miller

[PATCH] C99 initializers for drivers/sgi

parent d5ea0e7c
...@@ -331,12 +331,12 @@ static unsigned int ds1286_poll(struct file *file, poll_table *wait) ...@@ -331,12 +331,12 @@ static unsigned int ds1286_poll(struct file *file, poll_table *wait)
*/ */
static struct file_operations ds1286_fops = { static struct file_operations ds1286_fops = {
llseek: no_llseek, .llseek = no_llseek,
read: ds1286_read, .read = ds1286_read,
poll: ds1286_poll, .poll = ds1286_poll,
ioctl: ds1286_ioctl, .ioctl = ds1286_ioctl,
open: ds1286_open, .open = ds1286_open,
release: ds1286_release, .release = ds1286_release,
}; };
static struct miscdevice ds1286_dev= static struct miscdevice ds1286_dev=
......
...@@ -259,7 +259,7 @@ sgi_graphics_nopage (struct vm_area_struct *vma, unsigned long address, int ...@@ -259,7 +259,7 @@ sgi_graphics_nopage (struct vm_area_struct *vma, unsigned long address, int
*/ */
static struct vm_operations_struct graphics_mmap = { static struct vm_operations_struct graphics_mmap = {
nopage: sgi_graphics_nopage, /* our magic no-page fault handler */ .nopage = sgi_graphics_nopage, /* our magic no-page fault handler */
}; };
int int
...@@ -292,10 +292,10 @@ graphics_ops_post_init (int slot) ...@@ -292,10 +292,10 @@ graphics_ops_post_init (int slot)
#endif #endif
struct file_operations sgi_graphics_fops = { struct file_operations sgi_graphics_fops = {
ioctl: sgi_graphics_ioctl, .ioctl = sgi_graphics_ioctl,
mmap: sgi_graphics_mmap, .mmap = sgi_graphics_mmap,
open: sgi_graphics_open, .open = sgi_graphics_open,
release: sgi_graphics_close, .release = sgi_graphics_close,
}; };
/* /dev/graphics */ /* /dev/graphics */
......
...@@ -2258,12 +2258,12 @@ static int __init zs_console_setup(struct console *con, char *options) ...@@ -2258,12 +2258,12 @@ static int __init zs_console_setup(struct console *con, char *options)
} }
static struct console sgi_console_driver = { static struct console sgi_console_driver = {
name: "ttyS", .name = "ttyS",
write: zs_console_write, .write = zs_console_write,
device: zs_console_device, .device = zs_console_device,
setup: zs_console_setup, .setup = zs_console_setup,
flags: CON_PRINTBUFFER, .flags = CON_PRINTBUFFER,
index: -1, .index = -1,
}; };
/* /*
......
...@@ -311,7 +311,7 @@ shmiq_nopage (struct vm_area_struct *vma, unsigned long address, ...@@ -311,7 +311,7 @@ shmiq_nopage (struct vm_area_struct *vma, unsigned long address,
} }
static struct vm_operations_struct qcntl_mmap = { static struct vm_operations_struct qcntl_mmap = {
nopage: shmiq_nopage, /* our magic no-page fault handler */ .nopage = shmiq_nopage, /* our magic no-page fault handler */
}; };
static int static int
...@@ -454,12 +454,12 @@ shmiq_qcntl_close (struct inode *inode, struct file *filp) ...@@ -454,12 +454,12 @@ shmiq_qcntl_close (struct inode *inode, struct file *filp)
static struct file_operations shmiq_fops = static struct file_operations shmiq_fops =
{ {
poll: shmiq_qcntl_poll, .poll = shmiq_qcntl_poll,
ioctl: shmiq_qcntl_ioctl, .ioctl = shmiq_qcntl_ioctl,
mmap: shmiq_qcntl_mmap, .mmap = shmiq_qcntl_mmap,
open: shmiq_qcntl_open, .open = shmiq_qcntl_open,
release: shmiq_qcntl_close, .release = shmiq_qcntl_close,
fasync: shmiq_qcntl_fasync, .fasync = shmiq_qcntl_fasync,
}; };
void void
......
...@@ -59,7 +59,7 @@ sgi_gfx_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigne ...@@ -59,7 +59,7 @@ sgi_gfx_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigne
} }
struct file_operations sgi_gfx_fops = { struct file_operations sgi_gfx_fops = {
ioctl: sgi_gfx_ioctl, .ioctl = sgi_gfx_ioctl,
}; };
static struct miscdevice dev_gfx = { static struct miscdevice dev_gfx = {
...@@ -167,8 +167,8 @@ sgi_keyb_open (struct inode *inode, struct file *file) ...@@ -167,8 +167,8 @@ sgi_keyb_open (struct inode *inode, struct file *file)
} }
struct file_operations sgi_keyb_fops = { struct file_operations sgi_keyb_fops = {
ioctl: sgi_keyb_ioctl, .ioctl = sgi_keyb_ioctl,
open: sgi_keyb_open, .open = sgi_keyb_open,
}; };
static struct miscdevice dev_input_keyboard = { static struct miscdevice dev_input_keyboard = {
...@@ -296,9 +296,9 @@ sgi_mouse_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsig ...@@ -296,9 +296,9 @@ sgi_mouse_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsig
} }
struct file_operations sgi_mouse_fops = { struct file_operations sgi_mouse_fops = {
ioctl: sgi_mouse_ioctl, .ioctl = sgi_mouse_ioctl,
open: sgi_mouse_open, .open = sgi_mouse_open,
release: sgi_mouse_close, .release = sgi_mouse_close,
}; };
/* /dev/input/mouse */ /* /dev/input/mouse */
......
...@@ -164,9 +164,9 @@ sgi_usemaclone_open(struct inode *inode, struct file *filp) ...@@ -164,9 +164,9 @@ sgi_usemaclone_open(struct inode *inode, struct file *filp)
} }
struct file_operations sgi_usemaclone_fops = { struct file_operations sgi_usemaclone_fops = {
poll: sgi_usemaclone_poll, .poll = sgi_usemaclone_poll,
ioctl: sgi_usemaclone_ioctl, .ioctl = sgi_usemaclone_ioctl,
open: sgi_usemaclone_open, .open = sgi_usemaclone_open,
}; };
static struct miscdevice dev_usemaclone = { static struct miscdevice dev_usemaclone = {
......
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