aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/cp210x.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-23 11:20:44 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-23 11:21:03 -0500
commitc69263c66e5b2a5d0c7e5a41c189b1846ae1de92 (patch)
tree81c6cf0f5b3b05739e2e73b0118077d9dd245182 /drivers/usb/serial/cp210x.c
parent45196cee28a5bcfb6ddbe2bffa4270cbed66ae4b (diff)
parent5407a3c3d942e75d4d123d213fd692bce5acc961 (diff)
Merge branch 'usb-3.3-rc4' into usb-next
This is to pull in the xhci changes and the other fixes and device id updates that were done in Linus's tree. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/cp210x.c')
-rw-r--r--drivers/usb/serial/cp210x.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c
index 08a5575724cd..ec9dc4e9a3ff 100644
--- a/drivers/usb/serial/cp210x.c
+++ b/drivers/usb/serial/cp210x.c
@@ -286,7 +286,7 @@ static int cp210x_get_config(struct usb_serial_port *port, u8 request,
286 286
287 if (result != size) { 287 if (result != size) {
288 dbg("%s - Unable to send config request, " 288 dbg("%s - Unable to send config request, "
289 "request=0x%x size=%d result=%d\n", 289 "request=0x%x size=%d result=%d",
290 __func__, request, size, result); 290 __func__, request, size, result);
291 if (result > 0) 291 if (result > 0)
292 result = -EPROTO; 292 result = -EPROTO;
@@ -340,7 +340,7 @@ static int cp210x_set_config(struct usb_serial_port *port, u8 request,
340 340
341 if ((size > 2 && result != size) || result < 0) { 341 if ((size > 2 && result != size) || result < 0) {
342 dbg("%s - Unable to send request, " 342 dbg("%s - Unable to send request, "
343 "request=0x%x size=%d result=%d\n", 343 "request=0x%x size=%d result=%d",
344 __func__, request, size, result); 344 __func__, request, size, result);
345 if (result > 0) 345 if (result > 0)
346 result = -EPROTO; 346 result = -EPROTO;
@@ -683,13 +683,13 @@ static void cp210x_set_termios(struct tty_struct *tty,
683 default: 683 default:
684 dbg("cp210x driver does not " 684 dbg("cp210x driver does not "
685 "support the number of bits requested," 685 "support the number of bits requested,"
686 " using 8 bit mode\n"); 686 " using 8 bit mode");
687 bits |= BITS_DATA_8; 687 bits |= BITS_DATA_8;
688 break; 688 break;
689 } 689 }
690 if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2)) 690 if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2))
691 dbg("Number of data bits requested " 691 dbg("Number of data bits requested "
692 "not supported by device\n"); 692 "not supported by device");
693 } 693 }
694 694
695 if ((cflag & (PARENB|PARODD|CMSPAR)) != 695 if ((cflag & (PARENB|PARODD|CMSPAR)) !=
@@ -716,8 +716,7 @@ static void cp210x_set_termios(struct tty_struct *tty,
716 } 716 }
717 } 717 }
718 if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2)) 718 if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2))
719 dbg("Parity mode not supported " 719 dbg("Parity mode not supported by device");
720 "by device\n");
721 } 720 }
722 721
723 if ((cflag & CSTOPB) != (old_cflag & CSTOPB)) { 722 if ((cflag & CSTOPB) != (old_cflag & CSTOPB)) {
@@ -732,7 +731,7 @@ static void cp210x_set_termios(struct tty_struct *tty,
732 } 731 }
733 if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2)) 732 if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2))
734 dbg("Number of stop bits requested " 733 dbg("Number of stop bits requested "
735 "not supported by device\n"); 734 "not supported by device");
736 } 735 }
737 736
738 if ((cflag & CRTSCTS) != (old_cflag & CRTSCTS)) { 737 if ((cflag & CRTSCTS) != (old_cflag & CRTSCTS)) {