diff options
| author | 2007-06-10 10:53:48 +0000 | |
|---|---|---|
| committer | 2007-06-10 10:53:48 +0000 | |
| commit | 1596fc1e8614a8e5fa585e7e19db4d9de4a96714 (patch) | |
| tree | 9de436f81d8a01dc47713139858b55ecb612c793 /sys/dev/usb/uhidev.c | |
| parent | Remove definitions and usage of usb_callout and related macros. These macros (diff) | |
| download | wireguard-openbsd-1596fc1e8614a8e5fa585e7e19db4d9de4a96714.tar.xz wireguard-openbsd-1596fc1e8614a8e5fa585e7e19db4d9de4a96714.zip | |
Remove the definition and use of the USBDEV macro. It only created confusion
and the address of it's argument: USBDEV(sc->sc_dev) yields &sc->sc_dev.
No binary changes.
ok jsg.
Diffstat (limited to 'sys/dev/usb/uhidev.c')
| -rw-r--r-- | sys/dev/usb/uhidev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/uhidev.c b/sys/dev/usb/uhidev.c index 0ddaea1a9a2..11b983780b9 100644 --- a/sys/dev/usb/uhidev.c +++ b/sys/dev/usb/uhidev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhidev.c,v 1.23 2007/06/05 08:43:55 mbalmer Exp $ */ +/* $OpenBSD: uhidev.c,v 1.24 2007/06/10 10:53:48 mbalmer Exp $ */ /* $NetBSD: uhidev.c,v 1.14 2003/03/11 16:44:00 augustss Exp $ */ /* @@ -254,7 +254,7 @@ uhidev_attach(struct device *parent, struct device *self, void *aux) sc->sc_isize = 0; usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->sc_udev, - USBDEV(sc->sc_dev)); + &sc->sc_dev); for (repid = 0; repid < nrepid; repid++) { repsz = hid_report_size(desc, size, hid_input, repid); @@ -384,7 +384,7 @@ uhidev_detach(struct device *self, int flags) } usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->sc_udev, - USBDEV(sc->sc_dev)); + &sc->sc_dev); return (rv); } |
