Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

serial: 8250: drop unused frac from serial8250_do_get_divisor()

'frac' is not used in the generic implementation of get_divisor. Drop it
from there. (Only some port->get_divisor() compute that and receive it
then to port->set_divisor()).

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20250611100319.186924-27-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
465fd2fc 59055933

+2 -4
+2 -4
drivers/tty/serial/8250/8250_port.c
··· 2481 2481 serial8250_tx_dma_flush(up); 2482 2482 } 2483 2483 2484 - static unsigned int serial8250_do_get_divisor(struct uart_port *port, 2485 - unsigned int baud, 2486 - unsigned int *frac) 2484 + static unsigned int serial8250_do_get_divisor(struct uart_port *port, unsigned int baud) 2487 2485 { 2488 2486 upf_t magic_multiplier = port->flags & UPF_MAGIC_MULTIPLIER; 2489 2487 struct uart_8250_port *up = up_to_u8250p(port); ··· 2542 2544 if (port->get_divisor) 2543 2545 return port->get_divisor(port, baud, frac); 2544 2546 2545 - return serial8250_do_get_divisor(port, baud, frac); 2547 + return serial8250_do_get_divisor(port, baud); 2546 2548 } 2547 2549 2548 2550 static unsigned char serial8250_compute_lcr(struct uart_8250_port *up, tcflag_t c_cflag)