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

tty: serial: 8250: Fix indentation warnings

Checkpatch complains about incorrect indentation of switch/case statements.
This patch fixes the corresponding warnings. Additionally some indentation
is changed to match the correct format specified in the Linux Kernel
Coding Style.

Signed-off-by: Anton Würfel <anton.wuerfel@fau.de>
Signed-off-by: Phillip Raffeck <phillip.raffeck@fau.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: linux-kernel@i4.cs.fau.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Anton Wuerfel and committed by
Greg Kroah-Hartman
b3d67936 829b0000

+13 -13
+8 -8
drivers/tty/serial/8250/8250_pci.c
··· 842 842 return 0; 843 843 844 844 switch (dev->device) { /* FALLTHROUGH on all */ 845 - case PCI_DEVICE_ID_NETMOS_9904: 846 - case PCI_DEVICE_ID_NETMOS_9912: 847 - case PCI_DEVICE_ID_NETMOS_9922: 848 - case PCI_DEVICE_ID_NETMOS_9900: 849 - num_serial = pci_netmos_9900_numports(dev); 850 - break; 845 + case PCI_DEVICE_ID_NETMOS_9904: 846 + case PCI_DEVICE_ID_NETMOS_9912: 847 + case PCI_DEVICE_ID_NETMOS_9922: 848 + case PCI_DEVICE_ID_NETMOS_9900: 849 + num_serial = pci_netmos_9900_numports(dev); 850 + break; 851 851 852 - default: 853 - break; 852 + default: 853 + break; 854 854 } 855 855 856 856 if (num_serial == 0) {
+2 -2
drivers/tty/serial/8250/8250_pnp.c
··· 427 427 static int serial_pnp_guess_board(struct pnp_dev *dev) 428 428 { 429 429 if (!(check_name(pnp_dev_name(dev)) || 430 - (dev->card && check_name(dev->card->name)))) 431 - return -ENODEV; 430 + (dev->card && check_name(dev->card->name)))) 431 + return -ENODEV; 432 432 433 433 if (check_resources(dev)) 434 434 return 0;
+3 -3
drivers/tty/serial/8250/8250_port.c
··· 2469 2469 serial_port_out(port, 0x2, quot_frac); 2470 2470 } 2471 2471 2472 - static unsigned int 2473 - serial8250_get_baud_rate(struct uart_port *port, struct ktermios *termios, 2474 - struct ktermios *old) 2472 + static unsigned int serial8250_get_baud_rate(struct uart_port *port, 2473 + struct ktermios *termios, 2474 + struct ktermios *old) 2475 2475 { 2476 2476 unsigned int tolerance = port->uartclk / 100; 2477 2477