From owner-svn-src-head@freebsd.org Tue Sep 1 21:39:21 2020 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2A58137AF89; Tue, 1 Sep 2020 21:39:21 +0000 (UTC) (envelope-from mjg@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bh0p10QJlz4PTn; Tue, 1 Sep 2020 21:39:21 +0000 (UTC) (envelope-from mjg@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E57EE1FE76; Tue, 1 Sep 2020 21:39:20 +0000 (UTC) (envelope-from mjg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 081LdKSZ032768; Tue, 1 Sep 2020 21:39:20 GMT (envelope-from mjg@FreeBSD.org) Received: (from mjg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 081LdJrn032761; Tue, 1 Sep 2020 21:39:19 GMT (envelope-from mjg@FreeBSD.org) Message-Id: <202009012139.081LdJrn032761@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mjg set sender to mjg@FreeBSD.org using -f From: Mateusz Guzik Date: Tue, 1 Sep 2020 21:39:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r365110 - in head/sys/dev: amd_ecc_inject amdgpio amdpm amdsbwd amdsmb X-SVN-Group: head X-SVN-Commit-Author: mjg X-SVN-Commit-Paths: in head/sys/dev: amd_ecc_inject amdgpio amdpm amdsbwd amdsmb X-SVN-Commit-Revision: 365110 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 21:39:21 -0000 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 #include - /* * 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 } };