]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
serial: remove quot_frac from serial8250_do_set_divisor()
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Mon, 5 Aug 2024 10:20:37 +0000 (12:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Aug 2024 11:13:35 +0000 (13:13 +0200)
quot_frac is unused in serial8250_do_set_divisor() since commit
b2b4b8ed3c06 (serial: 8250_exar: Move custom divisor support out from
8250_port). So no point to pass it.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Cc: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20240805102046.307511-5-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dwlib.c
drivers/tty/serial/8250/8250_exar.c
drivers/tty/serial/8250/8250_pci.c
drivers/tty/serial/8250/8250_port.c
include/linux/serial_8250.h

index 5a2520943dfd530a53fc938b183d732055e1284c..b055d89cfb3937281bb1c943f46db81ab628c96f 100644 (file)
@@ -89,7 +89,7 @@ static void dw8250_set_divisor(struct uart_port *p, unsigned int baud,
                               unsigned int quot, unsigned int quot_frac)
 {
        dw8250_writel_ext(p, DW_UART_DLF, quot_frac);
-       serial8250_do_set_divisor(p, baud, quot, quot_frac);
+       serial8250_do_set_divisor(p, baud, quot);
 }
 
 void dw8250_do_set_termios(struct uart_port *p, struct ktermios *termios,
index 616128254bbdc4bd98417999b60bca9fd2c6b394..b7a75db15249a7c4f54eaa4ccef09a4c3c7f11d3 100644 (file)
@@ -500,7 +500,7 @@ static unsigned int xr17v35x_get_divisor(struct uart_port *p, unsigned int baud,
 static void xr17v35x_set_divisor(struct uart_port *p, unsigned int baud,
                                 unsigned int quot, unsigned int quot_frac)
 {
-       serial8250_do_set_divisor(p, baud, quot, quot_frac);
+       serial8250_do_set_divisor(p, baud, quot);
 
        /* Preserve bits not related to baudrate; DLD[7:4]. */
        quot_frac |= serial_port_in(p, 0x2) & 0xf0;
index e1d7aa2fa3474d7288f549249f041f5c9f9726bb..6709b6a5f3011db38acc58dc7223158fe4fcf72e 100644 (file)
@@ -1277,7 +1277,7 @@ static void pci_oxsemi_tornado_set_divisor(struct uart_port *port,
        serial_icr_write(up, UART_TCR, tcr);
        serial_icr_write(up, UART_CPR, cpr);
        serial_icr_write(up, UART_CKS, cpr2);
-       serial8250_do_set_divisor(port, baud, quot, 0);
+       serial8250_do_set_divisor(port, baud, quot);
 }
 
 /*
index 2786918aea98e91f90dc1a13db26ae7228974c35..3509af7dc52b8816f2f5ab58f0d999696f7483e7 100644 (file)
@@ -2609,7 +2609,7 @@ static unsigned char serial8250_compute_lcr(struct uart_8250_port *up,
 }
 
 void serial8250_do_set_divisor(struct uart_port *port, unsigned int baud,
-                              unsigned int quot, unsigned int quot_frac)
+                              unsigned int quot)
 {
        struct uart_8250_port *up = up_to_u8250p(port);
 
@@ -2641,7 +2641,7 @@ static void serial8250_set_divisor(struct uart_port *port, unsigned int baud,
        if (port->set_divisor)
                port->set_divisor(port, baud, quot, quot_frac);
        else
-               serial8250_do_set_divisor(port, baud, quot, quot_frac);
+               serial8250_do_set_divisor(port, baud, quot);
 }
 
 static unsigned int serial8250_get_baud_rate(struct uart_port *port,
index fd59ed2cca53e967af17fa23c13740d67b6733e7..e0717c8393d7fe56fb3997a704b7a8de875f7343 100644 (file)
@@ -193,7 +193,7 @@ void serial8250_do_pm(struct uart_port *port, unsigned int state,
                      unsigned int oldstate);
 void serial8250_do_set_mctrl(struct uart_port *port, unsigned int mctrl);
 void serial8250_do_set_divisor(struct uart_port *port, unsigned int baud,
-                              unsigned int quot, unsigned int quot_frac);
+                              unsigned int quot);
 int fsl8250_handle_irq(struct uart_port *port);
 int serial8250_handle_irq(struct uart_port *port, unsigned int iir);
 u16 serial8250_rx_chars(struct uart_8250_port *up, u16 lsr);