mxser: drop constant board::uart_type
authorJiri Slaby <jslaby@suse.cz>
Fri, 18 Jun 2021 06:14:15 +0000 (08:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jun 2021 11:09:58 +0000 (13:09 +0200)
board::uart_type is always set to PORT_16550A. So, use this constant in
the code instead. And drop the mxser_board member.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210618061516.662-10-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/mxser.c

index 558bd4140ee1ddd73c51b6094d257fcc8458937d..a6121fea7a556c6102cbf39d05f6b5bb652c4cc8 100644 (file)
@@ -372,7 +372,6 @@ struct mxser_board {
        unsigned long vector_mask;
 
        enum mxser_must_hwid must_hwid;
-       int uart_type;
 
        struct mxser_port ports[MXSER_PORTS_PER_BOARD];
 };
@@ -2361,7 +2360,7 @@ static int mxser_initbrd(struct mxser_board *brd)
                if (brd->must_hwid != MOXA_OTHER_UART)
                        mxser_enable_must_enchance_mode(info->ioaddr);
 
-               info->type = brd->uart_type;
+               info->type = PORT_16550A;
 
                process_txrx_fifo(info);
 
@@ -2454,7 +2453,6 @@ static int mxser_probe(struct pci_dev *pdev,
        brd->irq = pdev->irq;
 
        brd->must_hwid = mxser_must_get_hwid(brd->ports[0].ioaddr);
-       brd->uart_type = PORT_16550A;
        brd->vector_mask = 0;
 
        for (i = 0; i < brd->info->nports; i++) {