Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79816824 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

USB: pl2303: rename pl2303_encode_baud_rate



Rename baud-rate encoding function to match tty naming.

Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 359defda
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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])
{
@@ -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 */