diff options
author | hselasky <hselasky@FreeBSD.org> | 2013-12-11 13:20:32 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2013-12-11 13:20:32 +0000 |
commit | 2d679424b8f7bbbe25d3da57b486c1c64f42f238 (patch) | |
tree | 9234adde363054886200ae0308a498201d1112e9 /sys/dev/usb/controller/xhci.c | |
parent | 4741c4b7e23489d138e1e2644c637ecdcdf3ebf3 (diff) | |
download | FreeBSD-src-2d679424b8f7bbbe25d3da57b486c1c64f42f238.zip FreeBSD-src-2d679424b8f7bbbe25d3da57b486c1c64f42f238.tar.gz |
USB method structures for USB controllers and USB pipes should be
constant and does not need to be modified. This also saves a small
amount of RAM.
Diffstat (limited to 'sys/dev/usb/controller/xhci.c')
-rw-r--r-- | sys/dev/usb/controller/xhci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c index 75f3d5e..48c5edb 100644 --- a/sys/dev/usb/controller/xhci.c +++ b/sys/dev/usb/controller/xhci.c @@ -160,7 +160,7 @@ static void xhci_ctx_set_le64(struct xhci_softc *sc, volatile uint64_t *ptr, uin static uint64_t xhci_ctx_get_le64(struct xhci_softc *sc, volatile uint64_t *ptr); #endif -extern struct usb_bus_methods xhci_bus_methods; +static const struct usb_bus_methods xhci_bus_methods; #ifdef USB_DEBUG static void @@ -3069,7 +3069,7 @@ xhci_device_generic_start(struct usb_xfer *xfer) usbd_transfer_timeout_ms(xfer, &xhci_timeout, xfer->timeout); } -struct usb_pipe_methods xhci_device_generic_methods = +static const struct usb_pipe_methods xhci_device_generic_methods = { .open = xhci_device_generic_open, .close = xhci_device_generic_close, @@ -4235,7 +4235,7 @@ xhci_set_endpoint_mode(struct usb_device *udev, struct usb_endpoint *ep, } } -struct usb_bus_methods xhci_bus_methods = { +static const struct usb_bus_methods xhci_bus_methods = { .endpoint_init = xhci_ep_init, .endpoint_uninit = xhci_ep_uninit, .xfer_setup = xhci_xfer_setup, |