Prev: [RFC v2 02/10] Revert "lsm: Remove the socket_post_accept() hook"
Next: [PATCH 0/3 RFCv4] add support for Janz MODULbus devices
From: H Hartley Sweeten on 2 Mar 2010 16:20 Use C99 syntax for the struct file_operations initialization. Signed-off-by: H Hartley Sweeten <hsweeten(a)visionengravers.com> Cc: Greg Kroah-Hartman <greg(a)kroah.com> Cc: Scott Smedley <ss(a)aao.gov.au> --- diff --git a/drivers/staging/dt3155/dt3155_drv.c b/drivers/staging/dt3155/dt3155_drv.c index a67c622..0183005 100644 --- a/drivers/staging/dt3155/dt3155_drv.c +++ b/drivers/staging/dt3155/dt3155_drv.c @@ -850,12 +850,12 @@ static unsigned int dt3155_poll (struct file * filp, poll_table *wait) * register_chrdev *****************************************************/ static struct file_operations dt3155_fops = { - read: dt3155_read, - ioctl: dt3155_ioctl, - mmap: dt3155_mmap, - poll: dt3155_poll, - open: dt3155_open, - release: dt3155_close + .read = dt3155_read, + .ioctl = dt3155_ioctl, + .mmap = dt3155_mmap, + .poll = dt3155_poll, + .open = dt3155_open, + .release = dt3155_close, }; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |