patch-2.3.43 linux/drivers/block/acsi_slm.c

Next file: linux/drivers/block/blkpg.c
Previous file: linux/drivers/block/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.42/linux/drivers/block/acsi_slm.c linux/drivers/block/acsi_slm.c
@@ -271,17 +271,11 @@
 static struct timer_list slm_timer = { NULL, NULL, 0, 0, slm_test_ready };
 
 static struct file_operations slm_fops = {
-	NULL,			/* lseek - default */
-	slm_read,		/* read - status reading */
-	slm_write,		/* write - printing data write */
-	NULL,			/* readdir - bad */
-	NULL,			/* poll */
-	slm_ioctl,		/* ioctl */
-	NULL,			/* mmap */
-	slm_open,		/* open */
-	NULL,			/* flush */
-	slm_release,		/* release */
-	NULL			/* fsync */
+	read:		slm_read,
+	write:		slm_write,
+	ioctl:		slm_ioctl,
+	open:		slm_open,
+	release:	slm_release,
 };
 
 

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