]> err.no Git - linux-2.6/blobdiff - drivers/serial/m32r_sio.c
[PATCH] PCI: restore BAR values after D3hot->D0 for devices that need it
[linux-2.6] / drivers / serial / m32r_sio.c
index 08d61f13edc61501f4aa8d5e34a46806b98bb346..0301feacbde49f0b57ca842767c8df4086ea1357 100644 (file)
@@ -724,22 +724,22 @@ static void m32r_sio_set_termios(struct uart_port *port,
 
        switch (termios->c_cflag & CSIZE) {
        case CS5:
-               cval = 0x00;
+               cval = UART_LCR_WLEN5;
                break;
        case CS6:
-               cval = 0x01;
+               cval = UART_LCR_WLEN6;
                break;
        case CS7:
-               cval = 0x02;
+               cval = UART_LCR_WLEN7;
                break;
        default:
        case CS8:
-               cval = 0x03;
+               cval = UART_LCR_WLEN8;
                break;
        }
 
        if (termios->c_cflag & CSTOPB)
-               cval |= 0x04;
+               cval |= UART_LCR_STOP;
        if (termios->c_cflag & PARENB)
                cval |= UART_LCR_PARITY;
        if (!(termios->c_cflag & PARODD))