diff options
Diffstat (limited to 'drivers/usb/serial/usb_wwan.c')
| -rw-r--r-- | drivers/usb/serial/usb_wwan.c | 45 | 
1 files changed, 0 insertions, 45 deletions
| diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_wwan.c index 46d46a4f99c9..3eb72c59ede6 100644 --- a/drivers/usb/serial/usb_wwan.c +++ b/drivers/usb/serial/usb_wwan.c @@ -132,51 +132,6 @@ int usb_wwan_tiocmset(struct tty_struct *tty,  }  EXPORT_SYMBOL(usb_wwan_tiocmset); -int usb_wwan_get_serial_info(struct tty_struct *tty, -			   struct serial_struct *ss) -{ -	struct usb_serial_port *port = tty->driver_data; - -	ss->line            = port->minor; -	ss->port            = port->port_number; -	ss->baud_base       = tty_get_baud_rate(port->port.tty); -	ss->close_delay	    = port->port.close_delay / 10; -	ss->closing_wait    = port->port.closing_wait == ASYNC_CLOSING_WAIT_NONE ? -				 ASYNC_CLOSING_WAIT_NONE : -				 port->port.closing_wait / 10; -	return 0; -} -EXPORT_SYMBOL(usb_wwan_get_serial_info); - -int usb_wwan_set_serial_info(struct tty_struct *tty, -			   struct serial_struct *ss) -{ -	struct usb_serial_port *port = tty->driver_data; -	unsigned int closing_wait, close_delay; -	int retval = 0; - -	close_delay = ss->close_delay * 10; -	closing_wait = ss->closing_wait == ASYNC_CLOSING_WAIT_NONE ? -			ASYNC_CLOSING_WAIT_NONE : ss->closing_wait * 10; - -	mutex_lock(&port->port.mutex); - -	if (!capable(CAP_SYS_ADMIN)) { -		if ((close_delay != port->port.close_delay) || -		    (closing_wait != port->port.closing_wait)) -			retval = -EPERM; -		else -			retval = -EOPNOTSUPP; -	} else { -		port->port.close_delay  = close_delay; -		port->port.closing_wait = closing_wait; -	} - -	mutex_unlock(&port->port.mutex); -	return retval; -} -EXPORT_SYMBOL(usb_wwan_set_serial_info); -  int usb_wwan_write(struct tty_struct *tty, struct usb_serial_port *port,  		   const unsigned char *buf, int count)  { | 
