aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2013-12-29 13:23:18 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-01-03 15:34:33 -0500
commit619c43543a946dd2f094d2f1bfc81a3fd48356d8 (patch)
treec740e07c81a4ca0f4291fdb29f57b467d0b436da
parentee467a1f2066d2bfa293f7c2c7f1ff7000b0a39e (diff)
USB: pl2303: use C_CMSPAR macro
Use the new C_CMSPAR macro for consistency. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/serial/pl2303.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c
index 28e598638e0a..253cc9c367c1 100644
--- a/drivers/usb/serial/pl2303.c
+++ b/drivers/usb/serial/pl2303.c
@@ -523,7 +523,7 @@ static void pl2303_set_termios(struct tty_struct *tty,
523 /* For reference buf[5]=3 is mark parity */ 523 /* For reference buf[5]=3 is mark parity */
524 /* For reference buf[5]=4 is space parity */ 524 /* For reference buf[5]=4 is space parity */
525 if (C_PARODD(tty)) { 525 if (C_PARODD(tty)) {
526 if (tty->termios.c_cflag & CMSPAR) { 526 if (C_CMSPAR(tty)) {
527 buf[5] = 3; 527 buf[5] = 3;
528 dev_dbg(&port->dev, "parity = mark\n"); 528 dev_dbg(&port->dev, "parity = mark\n");
529 } else { 529 } else {
@@ -531,7 +531,7 @@ static void pl2303_set_termios(struct tty_struct *tty,
531 dev_dbg(&port->dev, "parity = odd\n"); 531 dev_dbg(&port->dev, "parity = odd\n");
532 } 532 }
533 } else { 533 } else {
534 if (tty->termios.c_cflag & CMSPAR) { 534 if (C_CMSPAR(tty)) {
535 buf[5] = 4; 535 buf[5] = 4;
536 dev_dbg(&port->dev, "parity = space\n"); 536 dev_dbg(&port->dev, "parity = space\n");
537 } else { 537 } else {