summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_transfer.c
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2013-12-11 13:20:32 +0000
committerhselasky <hselasky@FreeBSD.org>2013-12-11 13:20:32 +0000
commit2d679424b8f7bbbe25d3da57b486c1c64f42f238 (patch)
tree9234adde363054886200ae0308a498201d1112e9 /sys/dev/usb/usb_transfer.c
parent4741c4b7e23489d138e1e2644c637ecdcdf3ebf3 (diff)
downloadFreeBSD-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/usb_transfer.c')
-rw-r--r--sys/dev/usb/usb_transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_transfer.c b/sys/dev/usb/usb_transfer.c
index f2acf70..562ebb0 100644
--- a/sys/dev/usb/usb_transfer.c
+++ b/sys/dev/usb/usb_transfer.c
@@ -160,7 +160,7 @@ usbd_update_max_frame_size(struct usb_xfer *xfer)
usb_timeout_t
usbd_get_dma_delay(struct usb_device *udev)
{
- struct usb_bus_methods *mtod;
+ const struct usb_bus_methods *mtod;
uint32_t temp;
mtod = udev->bus->methods;
OpenPOWER on IntegriCloud