Author: mjg
Date: Tue Sep  1 21:39:19 2020
New Revision: 365110
URL: https://svnweb.freebsd.org/changeset/base/365110

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

Modified:
  head/sys/dev/amd_ecc_inject/ecc_inject.c
  head/sys/dev/amdgpio/amdgpio.c
  head/sys/dev/amdpm/amdpm.c
  head/sys/dev/amdsbwd/amd_chipset.h
  head/sys/dev/amdsbwd/amdsbwd.c
  head/sys/dev/amdsmb/amdsmb.c

Modified: head/sys/dev/amd_ecc_inject/ecc_inject.c
==============================================================================
--- head/sys/dev/amd_ecc_inject/ecc_inject.c    Tue Sep  1 21:38:18 2020        
(r365109)
+++ head/sys/dev/amd_ecc_inject/ecc_inject.c    Tue Sep  1 21:39:19 2020        
(r365110)
@@ -45,7 +45,6 @@
 #include <machine/cputypes.h>
 #include <machine/md_var.h>
 
-
 /*
  * See BKDG for AMD Family 15h Models 00h-0Fh Processors
  * (publication 42301 Rev 3.08 - March 12, 2012):

Modified: head/sys/dev/amdgpio/amdgpio.c
==============================================================================
--- head/sys/dev/amdgpio/amdgpio.c      Tue Sep  1 21:38:18 2020        
(r365109)
+++ head/sys/dev/amdgpio/amdgpio.c      Tue Sep  1 21:39:19 2020        
(r365110)
@@ -179,7 +179,6 @@ amdgpio_pin_getflags(device_t dev, uint32_t pin, uint3
 
        sc = device_get_softc(dev);
 
-
        dprintf("pin %d\n", pin);
        if (!amdgpio_valid_pin(sc, pin))
                return (EINVAL);
@@ -427,7 +426,6 @@ err_rsrc:
 
        return (ENXIO);
 }
-
 
 static int
 amdgpio_detach(device_t dev)

Modified: head/sys/dev/amdpm/amdpm.c
==============================================================================
--- head/sys/dev/amdpm/amdpm.c  Tue Sep  1 21:38:18 2020        (r365109)
+++ head/sys/dev/amdpm/amdpm.c  Tue Sep  1 21:39:19 2020        (r365110)
@@ -195,7 +195,7 @@ amdpm_attach(device_t dev)
 {
        struct amdpm_softc *amdpm_sc = device_get_softc(dev);
        u_char val_b;
-       
+
        /* Enable I/O block access */
        val_b = pci_read_config(dev, AMDPCI_GEN_CONFIG_PM, 1);
        pci_write_config(dev, AMDPCI_GEN_CONFIG_PM, val_b | AMDPCI_PMIOEN, 1);
@@ -208,7 +208,7 @@ amdpm_attach(device_t dev)
                amdpm_sc->rid = NFPCI_PMBASE;
        amdpm_sc->res = bus_alloc_resource_any(dev, SYS_RES_IOPORT,
                &amdpm_sc->rid, RF_ACTIVE);
-       
+
        if (amdpm_sc->res == NULL) {
                device_printf(dev, "could not map i/o space\n");
                return (ENXIO);
@@ -278,7 +278,7 @@ static int
 amdpm_abort(struct amdpm_softc *sc)
 {
        u_short l;
-       
+
        l = AMDPM_SMBINW(sc, AMDSMB_GLOBAL_ENABLE);
        AMDPM_SMBOUTW(sc, AMDSMB_GLOBAL_ENABLE, l | AMDSMB_GE_ABORT);
 
@@ -562,7 +562,7 @@ amdpm_bwrite(device_t dev, u_char slave, char cmd, u_c
        }
 
        AMDPM_SMBOUTW(sc, AMDSMB_HSTADDR, slave & ~LSB);
-       
+
        /*
         * Do we have to reset the internal 32-byte buffer?
         * Can't see how to do this from the data sheet.
@@ -606,7 +606,7 @@ amdpm_bread(device_t dev, u_char slave, char cmd, u_ch
        }
 
        AMDPM_SMBOUTW(sc, AMDSMB_HSTADDR, slave | LSB);
-       
+
        AMDPM_SMBOUTB(sc, AMDSMB_HSTCMD, cmd);
 
        l = AMDPM_SMBINW(sc, AMDSMB_GLOBAL_ENABLE);
@@ -641,7 +641,7 @@ static device_method_t amdpm_methods[] = {
        DEVMETHOD(device_probe,         amdpm_probe),
        DEVMETHOD(device_attach,        amdpm_attach),
        DEVMETHOD(device_detach,        amdpm_detach),
-       
+
        /* SMBus interface */
        DEVMETHOD(smbus_callback,       amdpm_callback),
        DEVMETHOD(smbus_quick,          amdpm_quick),
@@ -653,7 +653,6 @@ static device_method_t amdpm_methods[] = {
        DEVMETHOD(smbus_readw,          amdpm_readw),
        DEVMETHOD(smbus_bwrite,         amdpm_bwrite),
        DEVMETHOD(smbus_bread,          amdpm_bread),
-       
        { 0, 0 }
 };
 

Modified: head/sys/dev/amdsbwd/amd_chipset.h
==============================================================================
--- head/sys/dev/amdsbwd/amd_chipset.h  Tue Sep  1 21:38:18 2020        
(r365109)
+++ head/sys/dev/amdsbwd/amd_chipset.h  Tue Sep  1 21:39:19 2020        
(r365110)
@@ -147,4 +147,3 @@
 #define        AMDCZ49_SMBUS_REVID             0x49
 
 #define        HYGONCZ_SMBUS_DEVID             0x790b1d94
-

Modified: head/sys/dev/amdsbwd/amdsbwd.c
==============================================================================
--- head/sys/dev/amdsbwd/amdsbwd.c      Tue Sep  1 21:38:18 2020        
(r365109)
+++ head/sys/dev/amdsbwd/amdsbwd.c      Tue Sep  1 21:39:19 2020        
(r365110)
@@ -132,7 +132,6 @@ static driver_t             amdsbwd_driver = {
 
 DRIVER_MODULE(amdsbwd, isa, amdsbwd_driver, amdsbwd_devclass, NULL, NULL);
 
-
 static uint8_t
 pmio_read(struct resource *res, uint8_t reg)
 {
@@ -279,7 +278,6 @@ amdsbwd_identify(driver_t *driver, device_t parent)
        if (child == NULL)
                device_printf(parent, "add amdsbwd child failed\n");
 }
-
 
 static void
 amdsbwd_probe_sb7xx(device_t dev, struct resource *pmres, uint32_t *addr)

Modified: head/sys/dev/amdsmb/amdsmb.c
==============================================================================
--- head/sys/dev/amdsmb/amdsmb.c        Tue Sep  1 21:38:18 2020        
(r365109)
+++ head/sys/dev/amdsmb/amdsmb.c        Tue Sep  1 21:39:19 2020        
(r365110)
@@ -150,7 +150,7 @@ amdsmb_attach(device_t dev)
 
        /* Allocate I/O space */
        amdsmb_sc->rid = PCIR_BAR(0);
-       
+
        amdsmb_sc->res = bus_alloc_resource_any(dev, SYS_RES_IOPORT,
                &amdsmb_sc->rid, RF_ACTIVE);
 
@@ -563,7 +563,6 @@ static device_method_t amdsmb_methods[] = {
        DEVMETHOD(smbus_readw,          amdsmb_readw),
        DEVMETHOD(smbus_bwrite,         amdsmb_bwrite),
        DEVMETHOD(smbus_bread,          amdsmb_bread),
-
        { 0, 0 }
 };
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to