tty: USB does not need the filp argument in the drivers
And indeed none of them use it. Clean this up as it will make moving to a standard open method rather easier. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@ -93,8 +93,7 @@ static int debug;
|
||||
*/
|
||||
static int mct_u232_startup(struct usb_serial *serial);
|
||||
static void mct_u232_release(struct usb_serial *serial);
|
||||
static int mct_u232_open(struct tty_struct *tty,
|
||||
struct usb_serial_port *port, struct file *filp);
|
||||
static int mct_u232_open(struct tty_struct *tty, struct usb_serial_port *port);
|
||||
static void mct_u232_close(struct usb_serial_port *port);
|
||||
static void mct_u232_dtr_rts(struct usb_serial_port *port, int on);
|
||||
static void mct_u232_read_int_callback(struct urb *urb);
|
||||
@ -421,8 +420,7 @@ static void mct_u232_release(struct usb_serial *serial)
|
||||
}
|
||||
} /* mct_u232_release */
|
||||
|
||||
static int mct_u232_open(struct tty_struct *tty,
|
||||
struct usb_serial_port *port, struct file *filp)
|
||||
static int mct_u232_open(struct tty_struct *tty, struct usb_serial_port *port)
|
||||
{
|
||||
struct usb_serial *serial = port->serial;
|
||||
struct mct_u232_private *priv = usb_get_serial_port_data(port);
|
||||
|
Reference in New Issue
Block a user