[PATCH 04/10] serial: max310x: update baudrate comments for err calculation
From: Hugo Villeneuve
Date: Fri Apr 17 2026 - 11:36:37 EST
From: Hugo Villeneuve <hvilleneuve@xxxxxxxxxxxx>
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@xxxxxxxxxxxx>
---
drivers/tty/serial/max310x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/serial/max310x.c b/drivers/tty/serial/max310x.c
index cf27e597ea41541331c8786fe4b4ded39b53d291..f689958736f71b15b7c113214cda60db4aa7c593 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) {
--
2.47.3