diff options
| author | Hugo Villeneuve <hvilleneuve@dimonoff.com> | 2026-04-17 10:53:31 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-05-11 17:20:18 +0200 |
| commit | ffc3414d15c615bc0a46536343f917d8a5f14655 (patch) | |
| tree | 8dd2ab29af325c5b4dce6bfe32a38fc420cb0630 /drivers | |
| parent | df1490942a41f26aaea9ca487299c26286327603 (diff) | |
serial: max310x: update baudrate comments for err calculation
The baudrate used to compute the best error was changed from 115200 to
460800 in commit 35240ba26a93 ("tty: max310x: Fix invalid baudrate
divisors calculator"), but the comment was not updated, so fix it.
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://patch.msgid.link/20260417-max310x-2-v1-4-b424e105ecac@dimonoff.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/tty/serial/max310x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/max310x.c b/drivers/tty/serial/max310x.c index cf27e597ea41..f689958736f7 100644 --- a/drivers/tty/serial/max310x.c +++ b/drivers/tty/serial/max310x.c @@ -547,7 +547,7 @@ static int max310x_set_baud(struct uart_port *port, int baud) static int max310x_update_best_err(unsigned int f, unsigned int *besterr) { - /* Use baudrate 115200 for calculate error */ + /* Use high-enough baudrate to calculate error */ unsigned int err = f % (460800 * 16); if (*besterr > err) { |
