patch-2.1.67 linux/drivers/char/pc110pad.c
Next file: linux/drivers/char/pcwd.c
Previous file: linux/drivers/char/misc.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Sat Nov 29 10:33:19 1997
- Orig file:
v2.1.66/linux/drivers/char/pc110pad.c
- Orig date:
Tue Sep 23 16:48:47 1997
diff -u --recursive --new-file v2.1.66/linux/drivers/char/pc110pad.c linux/drivers/char/pc110pad.c
@@ -13,6 +13,7 @@
* 0.1 1997-05-19 Robin O'Leary <robin@acm.org> - PS/2 emulation
* 0.2 1997-06-03 Robin O'Leary <robin@acm.org> - tap gesture
* 0.3 1997-06-27 Alan Cox <alan@cymru.net> - 2.1 commit
+ * 0.4 1997-11-09 Alan Cox <alan@cymru.net> - Single Unix VFS API changes
*/
#include <linux/config.h>
@@ -532,7 +533,7 @@
/*
* writes are disallowed
*/
-static long write_pad(struct inode * inode, struct file * file, const char * buffer, unsigned long count)
+static ssize_t write_pad(struct file * file, const char * buffer, size_t count, loff_t *ppos)
{
return -EINVAL;
}
@@ -553,7 +554,7 @@
/*
* Read pad data. Currently never blocks.
*/
-static long read_pad(struct inode * inode, struct file * file, char * buffer, unsigned long count)
+static ssize_t read_pad(struct file * file, char * buffer, size_t count, loff_t *ppos)
{
int r;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov