patch-2.3.43 linux/drivers/char/raw.c

Next file: linux/drivers/char/rtc.c
Previous file: linux/drivers/char/random.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.42/linux/drivers/char/raw.c linux/drivers/char/raw.c
@@ -33,31 +33,15 @@
 
 
 static struct file_operations raw_fops = {
-	NULL,		/* llseek */
-	raw_read,	/* read */
-	raw_write,	/* write */
-	NULL,		/* readdir */
-	NULL,		/* poll */
-	NULL,		/* ioctl */
-	NULL,		/* mmap */
-	raw_open,	/* open */
-	NULL,		/* flush */
-	raw_release,	/* release */
-	NULL		/* fsync */
+	read:		raw_read,
+	write:		raw_write,
+	open:		raw_open,
+	release:	raw_release,
 };
 
 static struct file_operations raw_ctl_fops = {
-	NULL,		/* llseek */
-	NULL,		/* read */
-	NULL,		/* write */
-	NULL,		/* readdir */
-	NULL,		/* poll */
-	raw_ctl_ioctl,	/* ioctl */
-	NULL,		/* mmap */
-	raw_open,	/* open */
-	NULL,		/* flush */
-	NULL,		/* no special release code */
-	NULL		/* fsync */
+	ioctl:		raw_ctl_ioctl,
+	open:		raw_open,
 };
 
 void __init raw_init(void)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)