diff options
author | Johan Hovold <jhovold@gmail.com> | 2013-12-29 19:23:10 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-01-03 12:31:47 -0800 |
commit | 79816824c1ae73542d9523283ce353142b67563e (patch) | |
tree | 99486ee91a17a6db34f65278bb08bfe4d3adca1d /drivers/usb/serial/pl2303.c | |
parent | 359defdaa46c6ecf6a29600f3d57c663c9c35fd2 (diff) | |
download | linux-79816824c1ae73542d9523283ce353142b67563e.tar.bz2 |
USB: pl2303: rename pl2303_encode_baud_rate
Rename baud-rate encoding function to match tty naming.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/pl2303.c')
-rw-r--r-- | drivers/usb/serial/pl2303.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c index 35aa4973a137..8d792afbe27f 100644 --- a/drivers/usb/serial/pl2303.c +++ b/drivers/usb/serial/pl2303.c @@ -311,7 +311,7 @@ static int pl2303_set_control_lines(struct usb_serial_port *port, u8 value) 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, u8 buf[4]) { @@ -335,7 +335,7 @@ static void pl2303_encode_baudrate(struct tty_struct *tty, if (!baud) return; - /* Set baudrate to nearest supported value */ + /* Set baud rate to nearest supported value */ for (i = 0; i < ARRAY_SIZE(baud_sup); ++i) { if (baud_sup[i] > baud) break; @@ -461,7 +461,7 @@ static void pl2303_set_termios(struct tty_struct *tty, dev_dbg(&port->dev, "data bits = %d\n", buf[6]); /* 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]=1 is 1.5 stop bits */ |