diff options
| author | Alexander Viro <viro@parcelfarce.linux.theplanet.co.uk> | 2004-05-30 06:09:31 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-05-30 06:09:31 -0700 |
| commit | eaeaf871396c3e345d293dda3b1b2cd195eadf59 (patch) | |
| tree | b6d06cecc42e2895cb77f5cd58b25397ea4d1fc0 /include/linux/tty_driver.h | |
| parent | 6d7fee2615877bb0f009d9f60cae777b59f40728 (diff) | |
[PATCH] sparse: tty_driver ->write_proc()
Made ->write_proc in tty_driver suitable for procfs write callback
Diffstat (limited to 'include/linux/tty_driver.h')
| -rw-r--r-- | include/linux/tty_driver.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/tty_driver.h b/include/linux/tty_driver.h index ba9506f322b4..bbf6a3813fc8 100644 --- a/include/linux/tty_driver.h +++ b/include/linux/tty_driver.h @@ -145,7 +145,7 @@ struct tty_operations { void (*send_xchar)(struct tty_struct *tty, char ch); int (*read_proc)(char *page, char **start, off_t off, int count, int *eof, void *data); - int (*write_proc)(struct file *file, const char *buffer, + int (*write_proc)(struct file *file, const char __user *buffer, unsigned long count, void *data); int (*tiocmget)(struct tty_struct *tty, struct file *file); int (*tiocmset)(struct tty_struct *tty, struct file *file, @@ -207,7 +207,7 @@ struct tty_driver { void (*send_xchar)(struct tty_struct *tty, char ch); int (*read_proc)(char *page, char **start, off_t off, int count, int *eof, void *data); - int (*write_proc)(struct file *file, const char *buffer, + int (*write_proc)(struct file *file, const char __user *buffer, unsigned long count, void *data); int (*tiocmget)(struct tty_struct *tty, struct file *file); int (*tiocmset)(struct tty_struct *tty, struct file *file, |
