Date: Tue, 1 Sep 2020 22:01:17 +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: r365182 - head/sys/dev/pbio Message-ID: <202009012201.081M1H0Q049547@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Tue Sep 1 22:01:17 2020 New Revision: 365182 URL: https://svnweb.freebsd.org/changeset/base/365182 Log: pbio: clean up empty lines in .c and .h files Modified: head/sys/dev/pbio/pbio.c Modified: head/sys/dev/pbio/pbio.c ============================================================================== --- head/sys/dev/pbio/pbio.c Tue Sep 1 22:01:04 2020 (r365181) +++ head/sys/dev/pbio/pbio.c Tue Sep 1 22:01:17 2020 (r365182) @@ -159,7 +159,6 @@ pboutb(struct pbio_softc *scp, int off, uint8_t val) bus_space_write_1(scp->bst, scp->bsh, off, val); } - static int pbioprobe(device_t dev) { @@ -251,7 +250,7 @@ pbioioctl (struct cdev *dev, u_long cmd, caddr_t data, { struct pbio_softc *scp; int port, unit; - + unit = UNIT(dev); port = PORT(dev); scp = pbio_addr(unit); @@ -288,13 +287,13 @@ pbioopen(struct cdev *dev, int oflags, int devtype, st struct pbio_softc *scp; int ocfg, port, unit; int portbit; /* Port configuration bit */ - + unit = UNIT(dev); port = PORT(dev); scp = pbio_addr(unit); if (scp == NULL) return (ENODEV); - + switch (port) { case 0: portbit = 0x10; break; /* Port A */ case 1: portbit = 0x02; break; /* Port B */ @@ -321,12 +320,12 @@ pbioclose(struct cdev *dev, int fflag, int devtype, st { struct pbio_softc *scp; int unit; - + unit = UNIT(dev); scp = pbio_addr(unit); if (scp == NULL) return (ENODEV); - + return (0); } @@ -377,7 +376,7 @@ pbioread(struct cdev *dev, struct uio *uio, int ioflag struct pbio_softc *scp; int err, i, port, ret, toread, unit; char val; - + unit = UNIT(dev); port = PORT(dev); scp = pbio_addr(unit); @@ -406,7 +405,7 @@ pbiowrite(struct cdev *dev, struct uio *uio, int iofla struct pbio_softc *scp; int i, port, ret, towrite, unit; char val, oval; - + unit = UNIT(dev); port = PORT(dev); scp = pbio_addr(unit); @@ -453,12 +452,12 @@ pbiopoll(struct cdev *dev, int which, struct thread *t { struct pbio_softc *scp; int unit; - + unit = UNIT(dev); scp = pbio_addr(unit); if (scp == NULL) return (ENODEV); - + /* * Do processing */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009012201.081M1H0Q049547>