Commit bd5e47cc authored by Andrew Morton's avatar Andrew Morton Committed by Greg Kroah-Hartman

USB: ftd_sio cleanups and updates for new termios work checkpatch fixes

WARNING: line over 80 characters
#23: FILE: drivers/usb/serial/ftdi_sio.c:297:
+	speed_t force_baud;	/* if non-zero, force the baud rate to this value */

ERROR: use tabs not spaces
#31: FILE: drivers/usb/serial/ftdi_sio.c:881:
+^I$

ERROR: use tabs not spaces
#39: FILE: drivers/usb/serial/ftdi_sio.c:890:
+^I$

WARNING: line over 80 characters
#111: FILE: drivers/usb/serial/ftdi_sio.c:1956:
+		tty_encode_baud_rate(port->tty, priv->force_baud, priv->force_baud);

Your patch has style problems, please review.  If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 669a6db1
...@@ -878,7 +878,7 @@ static __u32 get_ftdi_divisor(struct usb_serial_port * port) ...@@ -878,7 +878,7 @@ static __u32 get_ftdi_divisor(struct usb_serial_port * port)
if (div_value == 0) { if (div_value == 0) {
dbg("%s - Baudrate (%d) requested is not supported", __FUNCTION__, baud); dbg("%s - Baudrate (%d) requested is not supported", __FUNCTION__, baud);
div_value = ftdi_sio_b9600; div_value = ftdi_sio_b9600;
baud = 9600; baud = 9600;
div_okay = 0; div_okay = 0;
} }
break; break;
...@@ -887,7 +887,7 @@ static __u32 get_ftdi_divisor(struct usb_serial_port * port) ...@@ -887,7 +887,7 @@ static __u32 get_ftdi_divisor(struct usb_serial_port * port)
div_value = ftdi_232am_baud_to_divisor(baud); div_value = ftdi_232am_baud_to_divisor(baud);
} else { } else {
dbg("%s - Baud rate too high!", __FUNCTION__); dbg("%s - Baud rate too high!", __FUNCTION__);
baud = 9600; baud = 9600;
div_value = ftdi_232am_baud_to_divisor(9600); div_value = ftdi_232am_baud_to_divisor(9600);
div_okay = 0; div_okay = 0;
} }
...@@ -1953,7 +1953,8 @@ static void ftdi_set_termios (struct usb_serial_port *port, struct ktermios *old ...@@ -1953,7 +1953,8 @@ static void ftdi_set_termios (struct usb_serial_port *port, struct ktermios *old
/* Force baud rate if this device requires it, unless it is set to B0. */ /* Force baud rate if this device requires it, unless it is set to B0. */
if (priv->force_baud && ((termios->c_cflag & CBAUD) != B0)) { if (priv->force_baud && ((termios->c_cflag & CBAUD) != B0)) {
dbg("%s: forcing baud rate for this device", __FUNCTION__); dbg("%s: forcing baud rate for this device", __FUNCTION__);
tty_encode_baud_rate(port->tty, priv->force_baud, priv->force_baud); tty_encode_baud_rate(port->tty, priv->force_baud,
priv->force_baud);
} }
/* Force RTS-CTS if this device requires it. */ /* Force RTS-CTS if this device requires it. */
......
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