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 *.
This commit is contained in:
Warner Losh 2009-05-20 16:29:22 +00:00
parent 515c5b1ede
commit 09605c1806
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192441

View File

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