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

This commit is contained in:
Mateusz Guzik 2020-09-01 21:39:19 +00:00
parent a3e2cdf8a6
commit e492d18c3c
6 changed files with 7 additions and 15 deletions

View File

@ -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):

View File

@ -179,7 +179,6 @@ amdgpio_pin_getflags(device_t dev, uint32_t pin, uint32_t *flags)
sc = device_get_softc(dev);
dprintf("pin %d\n", pin);
if (!amdgpio_valid_pin(sc, pin))
return (EINVAL);
@ -428,7 +427,6 @@ amdgpio_attach(device_t dev)
return (ENXIO);
}
static int
amdgpio_detach(device_t dev)
{

View File

@ -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_char count, char *buf)
}
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_char *count, char *buf)
}
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 }
};

View File

@ -147,4 +147,3 @@
#define AMDCZ49_SMBUS_REVID 0x49
#define HYGONCZ_SMBUS_DEVID 0x790b1d94

View File

@ -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)
{
@ -280,7 +279,6 @@ amdsbwd_identify(driver_t *driver, device_t parent)
device_printf(parent, "add amdsbwd child failed\n");
}
static void
amdsbwd_probe_sb7xx(device_t dev, struct resource *pmres, uint32_t *addr)
{

View File

@ -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 }
};