提交 3f6ff6ef 编写于 作者: A Alan Cox 提交者: Greg Kroah-Hartman

USB: kl5kusb105: witch to new speed API

Signed-off-by: NAlan Cox <alan@redhat.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 42cb967f
...@@ -728,24 +728,32 @@ static void klsi_105_set_termios (struct usb_serial_port *port, ...@@ -728,24 +728,32 @@ static void klsi_105_set_termios (struct usb_serial_port *port,
#endif #endif
} }
switch(cflag & CBAUD) { switch(tty_get_baud_rate(port->tty)) {
case B0: /* handled below */ case 0: /* handled below */
break; break;
case B1200: priv->cfg.baudrate = kl5kusb105a_sio_b1200; case 1200:
priv->cfg.baudrate = kl5kusb105a_sio_b1200;
break; break;
case B2400: priv->cfg.baudrate = kl5kusb105a_sio_b2400; case 2400:
priv->cfg.baudrate = kl5kusb105a_sio_b2400;
break; break;
case B4800: priv->cfg.baudrate = kl5kusb105a_sio_b4800; case 4800:
priv->cfg.baudrate = kl5kusb105a_sio_b4800;
break; break;
case B9600: priv->cfg.baudrate = kl5kusb105a_sio_b9600; case 9600:
priv->cfg.baudrate = kl5kusb105a_sio_b9600;
break; break;
case B19200: priv->cfg.baudrate = kl5kusb105a_sio_b19200; case 19200:
priv->cfg.baudrate = kl5kusb105a_sio_b19200;
break; break;
case B38400: priv->cfg.baudrate = kl5kusb105a_sio_b38400; case 38400:
priv->cfg.baudrate = kl5kusb105a_sio_b38400;
break; break;
case B57600: priv->cfg.baudrate = kl5kusb105a_sio_b57600; case 57600:
priv->cfg.baudrate = kl5kusb105a_sio_b57600;
break; break;
case B115200: priv->cfg.baudrate = kl5kusb105a_sio_b115200; case 115200:
priv->cfg.baudrate = kl5kusb105a_sio_b115200;
break; break;
default: default:
err("KLSI USB->Serial converter:" err("KLSI USB->Serial converter:"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册