USB: pl2303: use C_CMSPAR macro
authorJohan Hovold <jhovold@gmail.com>
Sun, 29 Dec 2013 18:23:18 +0000 (19:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Jan 2014 20:34:33 +0000 (12:34 -0800)
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>
drivers/usb/serial/pl2303.c

index 28e5986..253cc9c 100644 (file)
@@ -523,7 +523,7 @@ static void pl2303_set_termios(struct tty_struct *tty,
                /* For reference buf[5]=3 is mark parity */
                /* For reference buf[5]=4 is space parity */
                if (C_PARODD(tty)) {
-                       if (tty->termios.c_cflag & CMSPAR) {
+                       if (C_CMSPAR(tty)) {
                                buf[5] = 3;
                                dev_dbg(&port->dev, "parity = mark\n");
                        } else {
@@ -531,7 +531,7 @@ static void pl2303_set_termios(struct tty_struct *tty,
                                dev_dbg(&port->dev, "parity = odd\n");
                        }
                } else {
-                       if (tty->termios.c_cflag & CMSPAR) {
+                       if (C_CMSPAR(tty)) {
                                buf[5] = 4;
                                dev_dbg(&port->dev, "parity = space\n");
                        } else {