svn commit: r192441 - head/sys/i386/bios
Warner Losh
imp at FreeBSD.org
Wed May 20 16:29:23 UTC 2009
Author: imp
Date: Wed May 20 16:29:22 2009
New Revision: 192441
URL: http://svn.freebsd.org/changeset/base/192441
Log:
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 *.
Modified:
head/sys/i386/bios/smapi.c
Modified: head/sys/i386/bios/smapi.c
==============================================================================
--- head/sys/i386/bios/smapi.c Wed May 20 16:11:22 2009 (r192440)
+++ head/sys/i386/bios/smapi.c Wed May 20 16:29:22 2009 (r192441)
@@ -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;
More information about the svn-src-head
mailing list