提交 79816824 编写于 作者: J Johan Hovold 提交者: Greg Kroah-Hartman

USB: pl2303: rename pl2303_encode_baud_rate

Rename baud-rate encoding function to match tty naming.
Signed-off-by: NJohan Hovold <jhovold@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 359defda
...@@ -311,7 +311,7 @@ static int pl2303_set_control_lines(struct usb_serial_port *port, u8 value) ...@@ -311,7 +311,7 @@ static int pl2303_set_control_lines(struct usb_serial_port *port, u8 value)
return retval; return retval;
} }
static void pl2303_encode_baudrate(struct tty_struct *tty, static void pl2303_encode_baud_rate(struct tty_struct *tty,
struct usb_serial_port *port, struct usb_serial_port *port,
u8 buf[4]) u8 buf[4])
{ {
...@@ -335,7 +335,7 @@ static void pl2303_encode_baudrate(struct tty_struct *tty, ...@@ -335,7 +335,7 @@ static void pl2303_encode_baudrate(struct tty_struct *tty,
if (!baud) if (!baud)
return; return;
/* Set baudrate to nearest supported value */ /* Set baud rate to nearest supported value */
for (i = 0; i < ARRAY_SIZE(baud_sup); ++i) { for (i = 0; i < ARRAY_SIZE(baud_sup); ++i) {
if (baud_sup[i] > baud) if (baud_sup[i] > baud)
break; break;
...@@ -461,7 +461,7 @@ static void pl2303_set_termios(struct tty_struct *tty, ...@@ -461,7 +461,7 @@ static void pl2303_set_termios(struct tty_struct *tty,
dev_dbg(&port->dev, "data bits = %d\n", buf[6]); dev_dbg(&port->dev, "data bits = %d\n", buf[6]);
/* For reference buf[0]:buf[3] baud rate value */ /* For reference buf[0]:buf[3] baud rate value */
pl2303_encode_baudrate(tty, port, &buf[0]); pl2303_encode_baud_rate(tty, port, &buf[0]);
/* For reference buf[4]=0 is 1 stop bits */ /* For reference buf[4]=0 is 1 stop bits */
/* For reference buf[4]=1 is 1.5 stop bits */ /* For reference buf[4]=1 is 1.5 stop bits */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册