diff options
author | Warner Losh <imp@FreeBSD.org> | 2009-05-20 16:29:22 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2009-05-20 16:29:22 +0000 |
commit | 09605c1806f9a74334c8375c64621a381e8c54da (patch) | |
tree | f6dc18c08a3f5ab57a1e903056b6c3885b73417a | |
parent | 515c5b1ede5a730b7138d1324401ddb8ef7d97cc (diff) | |
download | src-09605c1806f9a74334c8375c64621a381e8c54da.tar.gz src-09605c1806f9a74334c8375c64621a381e8c54da.zip |
Some minor style changes:
o Convert K&R function definitions to ANSI
o Eliminate spaces/tabs that should have been deleted as part of the de__P
efforts
o Use struct thread * in preference to d_thread_t *.
Notes
Notes:
svn path=/head/; revision=192441
-rw-r--r-- | sys/i386/bios/smapi.c | 36 |
1 files changed, 14 insertions, 22 deletions
diff --git a/sys/i386/bios/smapi.c b/sys/i386/bios/smapi.c index bb0b2bf3a6af..e572664e2aca 100644 --- a/sys/i386/bios/smapi.c +++ b/sys/i386/bios/smapi.c @@ -58,7 +58,7 @@ __FBSDID("$FreeBSD$"); #define ADDR2HDR(addr) ((struct smapi_bios_header *)BIOS_PADDRTOVADDR(addr)) struct smapi_softc { - struct cdev *cdev; + struct cdev * cdev; device_t dev; struct resource * res; int rid; @@ -82,27 +82,22 @@ static struct cdevsw smapi_cdevsw = { .d_flags = D_MEM | D_NEEDGIANT, }; -static void smapi_identify (driver_t *, device_t); -static int smapi_probe (device_t); -static int smapi_attach (device_t); -static int smapi_detach (device_t); -static int smapi_modevent (module_t, int, void *); +static void smapi_identify(driver_t *, device_t); +static int smapi_probe(device_t); +static int smapi_attach(device_t); +static int smapi_detach(device_t); +static int smapi_modevent(module_t, int, void *); -static int smapi_header_cksum (struct smapi_bios_header *); +static int smapi_header_cksum(struct smapi_bios_header *); -extern int smapi32 (struct smapi_bios_parameter *, - struct smapi_bios_parameter *); -extern int smapi32_new (u_long, u_short, - struct smapi_bios_parameter *, - struct smapi_bios_parameter *); +extern int smapi32(struct smapi_bios_parameter *, + struct smapi_bios_parameter *); +extern int smapi32_new(u_long, u_short, + struct smapi_bios_parameter *, + struct smapi_bios_parameter *); static int -smapi_ioctl (dev, cmd, data, fflag, td) - struct cdev *dev; - u_long cmd; - caddr_t data; - int fflag; - d_thread_t * td; +smapi_ioctl (struct cdev *dev, u_long cmd, caddr_t data, int fflag, struct thread *td) { struct smapi_softc *sc; int error; @@ -283,10 +278,7 @@ smapi_detach (device_t dev) } static int -smapi_modevent (mod, what, arg) - module_t mod; - int what; - void * arg; +smapi_modevent (module_t mod, int what, void *arg) { device_t * devs; int count; |