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