Commit eaeaf871 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] sparse: tty_driver ->write_proc()

Made ->write_proc in tty_driver suitable for procfs write callback
parent 6d7fee26
...@@ -145,7 +145,7 @@ struct tty_operations { ...@@ -145,7 +145,7 @@ struct tty_operations {
void (*send_xchar)(struct tty_struct *tty, char ch); void (*send_xchar)(struct tty_struct *tty, char ch);
int (*read_proc)(char *page, char **start, off_t off, int (*read_proc)(char *page, char **start, off_t off,
int count, int *eof, void *data); 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); unsigned long count, void *data);
int (*tiocmget)(struct tty_struct *tty, struct file *file); int (*tiocmget)(struct tty_struct *tty, struct file *file);
int (*tiocmset)(struct tty_struct *tty, struct file *file, int (*tiocmset)(struct tty_struct *tty, struct file *file,
...@@ -207,7 +207,7 @@ struct tty_driver { ...@@ -207,7 +207,7 @@ struct tty_driver {
void (*send_xchar)(struct tty_struct *tty, char ch); void (*send_xchar)(struct tty_struct *tty, char ch);
int (*read_proc)(char *page, char **start, off_t off, int (*read_proc)(char *page, char **start, off_t off,
int count, int *eof, void *data); 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); unsigned long count, void *data);
int (*tiocmget)(struct tty_struct *tty, struct file *file); int (*tiocmget)(struct tty_struct *tty, struct file *file);
int (*tiocmset)(struct tty_struct *tty, struct file *file, int (*tiocmset)(struct tty_struct *tty, struct file *file,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment