diff options
| author | augustss <augustss@NetBSD.org> | 1999-09-05 19:32:18 +0000 |
|---|---|---|
| committer | augustss <augustss@NetBSD.org> | 1999-09-05 19:32:18 +0000 |
| commit | 24251055bcbdaca83cc7cc043cc753efbe81f77d (patch) | |
| tree | fa6a6f0889830166db177c559e00d5b6777e85a9 /sys/dev/usb/ums.c | |
| parent | 6cbab8a4739a11007b61d38de8407b28527ae8dc (diff) | |
Change the way the `struct device' base part of all driver softc are
declared and accessed to make it more portable. Idea from Nick Hibma, FreeBSD.
No functional changes.
Diffstat (limited to 'sys/dev/usb/ums.c')
| -rw-r--r-- | sys/dev/usb/ums.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c index 47b3b77ebb9..cf0e17940d6 100644 --- a/sys/dev/usb/ums.c +++ b/sys/dev/usb/ums.c @@ -1,4 +1,4 @@ -/* $NetBSD: ums.c,v 1.30 1999/09/04 22:26:12 augustss Exp $ */ +/* $NetBSD: ums.c,v 1.31 1999/09/05 19:32:19 augustss Exp $ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -85,7 +85,7 @@ int umsdebug = 0; #define PS2BUTMASK 0x0f struct ums_softc { - bdevice sc_dev; /* base device */ + USBBASEDEVICE sc_dev; /* base device */ usbd_interface_handle sc_iface; /* interface */ usbd_pipe_handle sc_intrpipe; /* interrupt pipe */ int sc_ep_addr; @@ -297,7 +297,7 @@ USB_ATTACH(ums) int ums_activate(self, act) - bdevice *self; + device_ptr_t self; enum devact act; { struct ums_softc *sc = (struct ums_softc *)self; @@ -316,7 +316,7 @@ ums_activate(self, act) int ums_detach(self, flags) - bdevice *self; + device_ptr_t self; int flags; { struct ums_softc *sc = (struct ums_softc *)self; |
