tiocmget: kill off the passing of the struct file
[firefly-linux-kernel-4.4.55.git] / include / linux / usb / serial.h
index 16d682f4f7c3572fd946d736af644cd4ef9c0b27..30b945397d193362499bf3cfa9870c9ee33104bd 100644 (file)
@@ -268,7 +268,7 @@ struct usb_serial_driver {
        int  (*chars_in_buffer)(struct tty_struct *tty);
        void (*throttle)(struct tty_struct *tty);
        void (*unthrottle)(struct tty_struct *tty);
-       int  (*tiocmget)(struct tty_struct *tty, struct file *file);
+       int  (*tiocmget)(struct tty_struct *tty);
        int  (*tiocmset)(struct tty_struct *tty, struct file *file,
                         unsigned int set, unsigned int clear);
        int  (*get_icount)(struct tty_struct *tty,
@@ -347,6 +347,9 @@ extern int usb_serial_generic_prepare_write_buffer(struct usb_serial_port *port,
 extern int usb_serial_handle_sysrq_char(struct usb_serial_port *port,
                                        unsigned int ch);
 extern int usb_serial_handle_break(struct usb_serial_port *port);
+extern void usb_serial_handle_dcd_change(struct usb_serial_port *usb_port,
+                                        struct tty_struct *tty,
+                                        unsigned int status);
 
 
 extern int usb_serial_bus_register(struct usb_serial_driver *device);