patch-2.3.43 linux/drivers/sgi/char/streamable.c

Next file: linux/drivers/sgi/char/usema.c
Previous file: linux/drivers/sgi/char/shmiq.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.42/linux/drivers/sgi/char/streamable.c linux/drivers/sgi/char/streamable.c
@@ -72,18 +72,9 @@
 }
 
 struct file_operations sgi_gfx_fops = {
-	NULL,			/* llseek */
-	NULL,			/* read */
-	NULL,			/* write */
-	NULL,			/* readdir */
-	NULL,			/* poll */
-	sgi_gfx_ioctl,		/* ioctl */
-	NULL,			/* mmap */
-	sgi_gfx_open,		/* open */
-	NULL,			/* flush */
-	sgi_gfx_close,		/* release */
-	NULL,			/* fsync */
-	NULL			/* lock */
+	ioctl:		sgi_gfx_ioctl,
+	open:		sgi_gfx_open,
+	release:	sgi_gfx_close,
 };
  
 static struct miscdevice dev_gfx = {
@@ -191,18 +182,8 @@
 }
 
 struct file_operations sgi_keyb_fops = {
-	NULL,			/* llseek */
-	NULL,			/* read */
-	NULL,			/* write */
-	NULL,			/* readdir */
-	NULL,			/* poll */
-	sgi_keyb_ioctl,		/* ioctl */
-	NULL,			/* mmap */
-	sgi_keyb_open,		/* open */
-	NULL,			/* flush */
-	NULL,			/* release */
-	NULL,			/* fsync */
-	NULL			/* lock */
+	ioctl:		sgi_keyb_ioctl,
+	open:		sgi_keyb_open,
 };
 
 static struct miscdevice dev_input_keyboard = {
@@ -330,18 +311,9 @@
 }
 
 struct file_operations sgi_mouse_fops = {
-	NULL,			/* llseek */
-	NULL,			/* read */
-	NULL,			/* write */
-	NULL,			/* readdir */
-	NULL,			/* poll */
-	sgi_mouse_ioctl,	/* ioctl */
-	NULL,			/* mmap */
-	sgi_mouse_open,		/* open */
-	NULL,			/* flush */
-	sgi_mouse_close,	/* release */
-	NULL,			/* fsync */
-	NULL			/* lock */
+	ioctl:		sgi_mouse_ioctl,
+	open:		sgi_mouse_open,
+	release:	sgi_mouse_close,
 };
 
 /* /dev/input/mouse */

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