patch-2.3.43 linux/drivers/scsi/st.c

Next file: linux/drivers/scsi/u14-34f.c
Previous file: linux/drivers/scsi/sr.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.42/linux/drivers/scsi/st.c linux/drivers/scsi/st.c
@@ -3217,17 +3217,12 @@
 
 static struct file_operations st_fops =
 {
-	NULL,			/* lseek - default */
-	st_read,		/* read - general block-dev read */
-	st_write,		/* write - general block-dev write */
-	NULL,			/* readdir - bad */
-	NULL,			/* select */
-	st_ioctl,		/* ioctl */
-	NULL,			/* mmap */
-	scsi_tape_open,		/* open */
-	scsi_tape_flush,	/* flush */
-	scsi_tape_close,	/* release */
-	NULL			/* fsync */
+	read:		st_read,
+	write:		st_write,
+	ioctl:		st_ioctl,
+	open:		scsi_tape_open,
+	flush:		scsi_tape_flush,
+	release:	scsi_tape_close,
 };
 
 static int st_attach(Scsi_Device * SDp)

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