Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Sep 2020 21:58:57 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r365175 - head/sys/dev/ppc
Message-ID:  <202009012158.081Lwvs5048266@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjg
Date: Tue Sep  1 21:58:56 2020
New Revision: 365175
URL: https://svnweb.freebsd.org/changeset/base/365175

Log:
  ppc: clean up empty lines in .c and .h files

Modified:
  head/sys/dev/ppc/ppc.c
  head/sys/dev/ppc/ppc_acpi.c
  head/sys/dev/ppc/ppc_isa.c
  head/sys/dev/ppc/ppc_pci.c
  head/sys/dev/ppc/ppc_puc.c

Modified: head/sys/dev/ppc/ppc.c
==============================================================================
--- head/sys/dev/ppc/ppc.c	Tue Sep  1 21:58:40 2020	(r365174)
+++ head/sys/dev/ppc/ppc.c	Tue Sep  1 21:58:56 2020	(r365175)
@@ -426,7 +426,6 @@ ppc_pc873xx_detect(struct ppc_data *ppc, int chipset_m
     int		ptr, pcr, val, i;
 
     while ((idport = pc873xx_basetab[index++])) {
-
 	/* XXX should check first to see if this location is already claimed */
 
 	/*
@@ -488,7 +487,6 @@ ppc_pc873xx_detect(struct ppc_data *ppc, int chipset_m
 	val = inb(idport + 1);
 	/* XXX we should create a driver instance for every port found */
 	if (pc873xx_porttab[val & 0x3] != ppc->ppc_base) {
-
 	    /* First try to change the port address to that requested... */
 
 	    switch (ppc->ppc_base) {
@@ -710,7 +708,6 @@ ppc_smc37c66xgt_detect(struct ppc_data *ppc, int chips
 
 	int port_address[] = { -1 /* disabled */ , 0x3bc, 0x378, 0x278 };
 
-
 #define cio csr+1	/* config IO port is either 0x3F1 or 0x371 */
 
 	/*
@@ -1256,7 +1253,6 @@ ppc_generic_detect(struct ppc_data *ppc, int chipset_m
  */
 static int
 ppc_detect(struct ppc_data *ppc, int chipset_mode) {
-
 #ifdef PPC_PROBE_CHIPSET
 	int i, mode;
 
@@ -1570,7 +1566,6 @@ ppcintr(void *arg)
 		/* check if ppc driver has programmed the
 		 * nFault interrupt */
 		if  (ppc->ppc_irqstat & PPC_IRQ_nFAULT) {
-
 			w_ecr(ppc, ecr | PPC_nFAULT_INTR);
 			ppc->ppc_irqstat &= ~PPC_IRQ_nFAULT;
 		} else {
@@ -1607,7 +1602,6 @@ ppcintr(void *arg)
 			}
 		}
 	} else if (ppc->ppc_irqstat & PPC_IRQ_FIFO) {
-
 		/* classic interrupt I/O */
 		ppc->ppc_irqstat &= ~PPC_IRQ_FIFO;
 	}

Modified: head/sys/dev/ppc/ppc_acpi.c
==============================================================================
--- head/sys/dev/ppc/ppc_acpi.c	Tue Sep  1 21:58:40 2020	(r365174)
+++ head/sys/dev/ppc/ppc_acpi.c	Tue Sep  1 21:58:56 2020	(r365175)
@@ -81,7 +81,6 @@ static device_method_t ppc_acpi_methods[] = {
 #else
 	DEVMETHOD(ppbus_write,		ppc_write),
 #endif
-
 	{ 0, 0 }
 };
 

Modified: head/sys/dev/ppc/ppc_isa.c
==============================================================================
--- head/sys/dev/ppc/ppc_isa.c	Tue Sep  1 21:58:40 2020	(r365174)
+++ head/sys/dev/ppc/ppc_isa.c	Tue Sep  1 21:58:56 2020	(r365175)
@@ -76,7 +76,6 @@ static device_method_t ppc_isa_methods[] = {
 	DEVMETHOD(ppbus_ecp_sync,	ppc_ecp_sync),
 	DEVMETHOD(ppbus_read,		ppc_read),
 	DEVMETHOD(ppbus_write,		ppc_isa_write),
-
 	{ 0, 0 }
 };
 
@@ -234,7 +233,6 @@ ppc_isa_write(device_t dev, char *buf, int len, int ho
 
 	/* wait for an empty fifo */
 	while (!(r_ecr(ppc) & PPC_FIFO_EMPTY)) {
-
 		for (spin=100; spin; spin--)
 			if (r_ecr(ppc) & PPC_FIFO_EMPTY)
 				goto fifo_empty;

Modified: head/sys/dev/ppc/ppc_pci.c
==============================================================================
--- head/sys/dev/ppc/ppc_pci.c	Tue Sep  1 21:58:40 2020	(r365174)
+++ head/sys/dev/ppc/ppc_pci.c	Tue Sep  1 21:58:56 2020	(r365175)
@@ -67,7 +67,6 @@ static device_method_t ppc_pci_methods[] = {
 	DEVMETHOD(ppbus_ecp_sync,	ppc_ecp_sync),
 	DEVMETHOD(ppbus_read,		ppc_read),
 	DEVMETHOD(ppbus_write,		ppc_write),
-
 	{ 0, 0 }
 };
 

Modified: head/sys/dev/ppc/ppc_puc.c
==============================================================================
--- head/sys/dev/ppc/ppc_puc.c	Tue Sep  1 21:58:40 2020	(r365174)
+++ head/sys/dev/ppc/ppc_puc.c	Tue Sep  1 21:58:56 2020	(r365175)
@@ -69,7 +69,6 @@ static device_method_t ppc_puc_methods[] = {
 	DEVMETHOD(ppbus_ecp_sync,	ppc_ecp_sync),
 	DEVMETHOD(ppbus_read,		ppc_read),
 	DEVMETHOD(ppbus_write,		ppc_write),
-
 	{ 0, 0 }
 };
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009012158.081Lwvs5048266>