Commit 2c85e0a9 authored by Johan Hovold's avatar Johan Hovold

USB: serial: kl5kusb105: remove unused termios structure

Remove unused termios structure from private data that was left by an
earlier purge by commit b1cff285 ("usb serial: Eliminate bogus ioctl
code").
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
parent c2a24bb1
...@@ -112,7 +112,6 @@ struct klsi_105_port_settings { ...@@ -112,7 +112,6 @@ struct klsi_105_port_settings {
struct klsi_105_private { struct klsi_105_private {
struct klsi_105_port_settings cfg; struct klsi_105_port_settings cfg;
struct ktermios termios;
unsigned long line_state; /* modem line settings */ unsigned long line_state; /* modem line settings */
spinlock_t lock; spinlock_t lock;
}; };
...@@ -232,8 +231,6 @@ static int klsi_105_port_probe(struct usb_serial_port *port) ...@@ -232,8 +231,6 @@ static int klsi_105_port_probe(struct usb_serial_port *port)
spin_lock_init(&priv->lock); spin_lock_init(&priv->lock);
/* priv->termios is left uninitialized until port opening */
usb_set_serial_port_data(port, priv); usb_set_serial_port_data(port, priv);
return 0; return 0;
...@@ -254,7 +251,6 @@ static int klsi_105_open(struct tty_struct *tty, struct usb_serial_port *port) ...@@ -254,7 +251,6 @@ static int klsi_105_open(struct tty_struct *tty, struct usb_serial_port *port)
struct klsi_105_private *priv = usb_get_serial_port_data(port); struct klsi_105_private *priv = usb_get_serial_port_data(port);
int retval = 0; int retval = 0;
int rc; int rc;
int i;
unsigned long line_state; unsigned long line_state;
struct klsi_105_port_settings *cfg; struct klsi_105_port_settings *cfg;
unsigned long flags; unsigned long flags;
...@@ -277,14 +273,7 @@ static int klsi_105_open(struct tty_struct *tty, struct usb_serial_port *port) ...@@ -277,14 +273,7 @@ static int klsi_105_open(struct tty_struct *tty, struct usb_serial_port *port)
cfg->unknown2 = 1; cfg->unknown2 = 1;
klsi_105_chg_port_settings(port, cfg); klsi_105_chg_port_settings(port, cfg);
/* set up termios structure */
spin_lock_irqsave(&priv->lock, flags); spin_lock_irqsave(&priv->lock, flags);
priv->termios.c_iflag = tty->termios.c_iflag;
priv->termios.c_oflag = tty->termios.c_oflag;
priv->termios.c_cflag = tty->termios.c_cflag;
priv->termios.c_lflag = tty->termios.c_lflag;
for (i = 0; i < NCCS; i++)
priv->termios.c_cc[i] = tty->termios.c_cc[i];
priv->cfg.pktlen = cfg->pktlen; priv->cfg.pktlen = cfg->pktlen;
priv->cfg.baudrate = cfg->baudrate; priv->cfg.baudrate = cfg->baudrate;
priv->cfg.databits = cfg->databits; priv->cfg.databits = cfg->databits;
......
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