serial: sunsab: remove trailing whitespaces
authorHugo Villeneuve <hvilleneuve@dimonoff.com>
Mon, 30 Oct 2023 21:22:40 +0000 (17:22 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Nov 2023 19:31:25 +0000 (19:31 +0000)
Fix coding style. No functional changes.

Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
Link: https://lore.kernel.org/r/20231030212240.975885-1-hugo@hugovil.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sunsab.c

index ff557796b578119f45319ed9e1374ce47d4d7d71..1ea2f33a07a74149669b2df514fc2a2a8fc83b0f 100644 (file)
@@ -443,7 +443,7 @@ static void sunsab_start_tx(struct uart_port *port)
 
        up->interrupt_mask1 &= ~(SAB82532_IMR1_ALLS|SAB82532_IMR1_XPR);
        writeb(up->interrupt_mask1, &up->regs->w.imr1);
-       
+
        if (!test_bit(SAB82532_XPR, &up->irqflags))
                return;
 
@@ -549,7 +549,7 @@ static int sunsab_startup(struct uart_port *port)
        (void) readb(&up->regs->r.isr1);
 
        /*
-        * Now, initialize the UART 
+        * Now, initialize the UART
         */
        writeb(0, &up->regs->w.ccr0);                           /* power-down */
        writeb(SAB82532_CCR0_MCE | SAB82532_CCR0_SC_NRZ |
@@ -563,7 +563,7 @@ static int sunsab_startup(struct uart_port *port)
                           SAB82532_MODE_RAC);
        writeb(up->cached_mode, &up->regs->w.mode);
        writeb(SAB82532_RFC_DPS|SAB82532_RFC_RFTH_32, &up->regs->w.rfc);
-       
+
        tmp = readb(&up->regs->rw.ccr0);
        tmp |= SAB82532_CCR0_PU;        /* power-up */
        writeb(tmp, &up->regs->rw.ccr0);
@@ -607,7 +607,7 @@ static void sunsab_shutdown(struct uart_port *port)
        up->cached_dafo &= ~SAB82532_DAFO_XBRK;
        writeb(up->cached_dafo, &up->regs->rw.dafo);
 
-       /* Disable Receiver */  
+       /* Disable Receiver */
        up->cached_mode &= ~SAB82532_MODE_RAC;
        writeb(up->cached_mode, &up->regs->rw.mode);
 
@@ -622,7 +622,7 @@ static void sunsab_shutdown(struct uart_port *port)
         * speed the chip was configured for when the port was open).
         */
 #if 0
-       /* Power Down */        
+       /* Power Down */
        tmp = readb(&up->regs->rw.ccr0);
        tmp &= ~SAB82532_CCR0_PU;
        writeb(tmp, &up->regs->rw.ccr0);
@@ -649,7 +649,7 @@ static void calc_ebrg(int baud, int *n_ret, int *m_ret)
                *m_ret = 0;
                return;
        }
-     
+
        /*
         * We scale numbers by 10 so that we get better accuracy
         * without having to use floating point.  Here we increment m
@@ -788,7 +788,7 @@ static const char *sunsab_type(struct uart_port *port)
 {
        struct uart_sunsab_port *up = (void *)port;
        static char buf[36];
-       
+
        sprintf(buf, "SAB82532 %s", sab82532_version[up->type]);
        return buf;
 }
@@ -933,7 +933,7 @@ static int sunsab_console_setup(struct console *con, char *options)
        sunsab_set_mctrl(&up->port, TIOCM_DTR | TIOCM_RTS);
 
        uart_port_unlock_irqrestore(&up->port, flags);
-       
+
        return 0;
 }