summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>1999-06-26 12:55:25 +0000
committern_hibma <n_hibma@FreeBSD.org>1999-06-26 12:55:25 +0000
commitd8ee6d4f5981fdb074812fa2864da43f29aa2b5c (patch)
tree68cbe2eb4d772f258ef52cf0049c31ab3f39afd8 /sys/dev/usb
parentcee8d47a59831e647ea61d71bf1f7602eab48939 (diff)
downloadFreeBSD-src-d8ee6d4f5981fdb074812fa2864da43f29aa2b5c.zip
FreeBSD-src-d8ee6d4f5981fdb074812fa2864da43f29aa2b5c.tar.gz
Change 'device' to 'self', to be more like the rest of the code
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/ukbd.c4
-rw-r--r--sys/dev/usb/usb_port.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/ukbd.c b/sys/dev/usb/ukbd.c
index c10777a..1fdc816 100644
--- a/sys/dev/usb/ukbd.c
+++ b/sys/dev/usb/ukbd.c
@@ -168,7 +168,7 @@ USB_MATCH(ukbd)
keyboard_switch_t *sw;
void *arg[4];
- int unit = device_get_unit(device);
+ int unit = device_get_unit(self);
sw = kbd_get_switch(DRIVER_NAME);
if (sw == NULL)
@@ -177,7 +177,7 @@ USB_MATCH(ukbd)
arg[0] = (void *)uaa;
arg[1] = (void *)ukbd_intr;
arg[2] = (void *)ukbd_disconnect;
- arg[3] = (void *)device;
+ arg[3] = (void *)self;
if ((*sw->probe)(unit, (void *)arg, 0))
return (UMATCH_NONE);
diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h
index 87ed0d3..4c420a0 100644
--- a/sys/dev/usb/usb_port.h
+++ b/sys/dev/usb/usb_port.h
@@ -165,10 +165,10 @@ static driver_t __CONCAT(dname,_driver) = { \
#define USB_MATCH(dname) \
static int \
-__CONCAT(dname,_match)(device_t device)
+__CONCAT(dname,_match)(device_t self)
#define USB_MATCH_START(dname, uaa) \
- struct usb_attach_arg *uaa = device_get_ivars(device)
+ struct usb_attach_arg *uaa = device_get_ivars(self)
#define USB_ATTACH(dname) \
static int \
OpenPOWER on IntegriCloud