patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / include / linux / tty_driver.h
index ba9506f..bbf6a38 100644 (file)
@@ -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,