diff options
| author | Jeff Garzik <jgarzik@pretzel.yyz.us> | 2005-06-26 23:42:30 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-26 23:42:30 -0400 |
| commit | f45727d52d1581e9ff4df9d1a12a60789ad2d1eb (patch) | |
| tree | 773ae25f98542e6d382c688f7e85e8137d065614 /drivers/serial/pxa.c | |
| parent | 4c925f452cfd16c690209e96821ee094e09a2404 (diff) | |
| parent | 5696c1944a33b4434a9a1ebb6383b906afd43a10 (diff) | |
Merge /spare/repo/netdev-2.6/ branch 'ieee80211'
Diffstat (limited to 'drivers/serial/pxa.c')
| -rw-r--r-- | drivers/serial/pxa.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/serial/pxa.c b/drivers/serial/pxa.c index 9dc151d8fa61..08b08d6ae904 100644 --- a/drivers/serial/pxa.c +++ b/drivers/serial/pxa.c | |||
| @@ -455,22 +455,22 @@ serial_pxa_set_termios(struct uart_port *port, struct termios *termios, | |||
| 455 | 455 | ||
| 456 | switch (termios->c_cflag & CSIZE) { | 456 | switch (termios->c_cflag & CSIZE) { |
| 457 | case CS5: | 457 | case CS5: |
| 458 | cval = 0x00; | 458 | cval = UART_LCR_WLEN5; |
| 459 | break; | 459 | break; |
| 460 | case CS6: | 460 | case CS6: |
| 461 | cval = 0x01; | 461 | cval = UART_LCR_WLEN6; |
| 462 | break; | 462 | break; |
| 463 | case CS7: | 463 | case CS7: |
| 464 | cval = 0x02; | 464 | cval = UART_LCR_WLEN7; |
| 465 | break; | 465 | break; |
| 466 | default: | 466 | default: |
| 467 | case CS8: | 467 | case CS8: |
| 468 | cval = 0x03; | 468 | cval = UART_LCR_WLEN8; |
| 469 | break; | 469 | break; |
| 470 | } | 470 | } |
| 471 | 471 | ||
| 472 | if (termios->c_cflag & CSTOPB) | 472 | if (termios->c_cflag & CSTOPB) |
| 473 | cval |= 0x04; | 473 | cval |= UART_LCR_STOP; |
| 474 | if (termios->c_cflag & PARENB) | 474 | if (termios->c_cflag & PARENB) |
| 475 | cval |= UART_LCR_PARITY; | 475 | cval |= UART_LCR_PARITY; |
| 476 | if (!(termios->c_cflag & PARODD)) | 476 | if (!(termios->c_cflag & PARODD)) |
