patch-2.3.49 linux/drivers/char/nwbutton.c

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

diff -u --recursive --new-file v2.3.48/linux/drivers/char/nwbutton.c linux/drivers/char/nwbutton.c
@@ -207,16 +207,9 @@
  */
 
 static struct file_operations button_fops = {
-	NULL,		/* lseek */
-	button_read,
-	NULL,		/* write */
-	NULL,		/* readdir */
-	NULL,		/* select */
-	NULL,		/* ioctl */
-	NULL,		/* mmap */
-	button_open,
-	NULL,		/* flush */
-	button_release,
+	read:		button_read,
+	open:		button_open,
+	release:	button_release,
 };
 
 /* 

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