summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/8250/8250_mtk.c
diff options
context:
space:
mode:
authorEd Blake <ed.blake@sondrel.com>2017-09-26 11:40:02 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-04 10:17:27 +0200
commit6263368c5b0b758d8639cad37a2a6493c9370425 (patch)
tree5aa7124185ff1b0f0659b8dc8e028b656d671dac /drivers/tty/serial/8250/8250_mtk.c
parent7464779fa8551b90d5797d4020b0bdb7e6422eb9 (diff)
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_mtk.c')
-rw-r--r--drivers/tty/serial/8250/8250_mtk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_mtk.c b/drivers/tty/serial/8250/8250_mtk.c
index fb45770d47aa..fef9823d7b4c 100644
--- a/drivers/tty/serial/8250/8250_mtk.c
+++ b/drivers/tty/serial/8250/8250_mtk.c
@@ -61,7 +61,7 @@ mtk8250_set_termios(struct uart_port *port, struct ktermios *termios,
* registers to their default values.
*/
baud = uart_get_baud_rate(port, termios, old,
- port->uartclk / 16 / 0xffff,
+ port->uartclk / 16 / UART_DIV_MAX,
port->uartclk);
if (baud <= 115200) {