Skip to contentSkip to conversation

staging/dt3155: use C99 syntax for struct initializer

PATCH New H Hartley Sweeten 1 participant 1 message Mar 2, 2010 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging/dt3155: use C99 syntax for struct initializer

Use C99 syntax for the struct file_operations initialization.

Cc Greg Kroah-Hartman <[email protected]>
Cc Scott Smedley <[email protected]>

---

drivers/staging/dt3155/dt3155_drv.c +6 -6
index a67c622..0183005 100644
@@ -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,
 };