diff options
author | Ed Blake <ed.blake@sondrel.com> | 2017-09-26 13:40:02 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-04 11:17:27 +0300 |
commit | 6263368c5b0b758d8639cad37a2a6493c9370425 (patch) | |
tree | 5aa7124185ff1b0f0659b8dc8e028b656d671dac /drivers/tty/serial/8250/8250_port.c | |
parent | 7464779fa8551b90d5797d4020b0bdb7e6422eb9 (diff) | |
download | linux-6263368c5b0b758d8639cad37a2a6493c9370425.tar.xz |
serial: Add define for max baud rate divisor
Add a define for the maximum baud rate divisor, to improve code
readability.
Signed-off-by: Ed Blake <ed.blake@sondrel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/8250/8250_port.c')
-rw-r--r-- | drivers/tty/serial/8250/8250_port.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c index f0cc04f62b67..01ab2188a151 100644 --- a/drivers/tty/serial/8250/8250_port.c +++ b/drivers/tty/serial/8250/8250_port.c @@ -2601,7 +2601,7 @@ static unsigned int serial8250_get_baud_rate(struct uart_port *port, * causing transmission errors. */ return uart_get_baud_rate(port, termios, old, - port->uartclk / 16 / 0xffff, + port->uartclk / 16 / UART_DIV_MAX, port->uartclk); } |