aboutsummaryrefslogtreecommitdiff
path: root/include/usb.h
diff options
context:
space:
mode:
authorBin Meng2017-10-01 06:19:36 -0700
committerMarek Vasut2017-10-01 16:32:50 +0200
commit98b639fc503e16cffa902d3ab89b29b9b5dcbf57 (patch)
treedf4ee0c1776590d1d11194e43b0247910ee0d888 /include/usb.h
parent6e9b109aa9bcdd094e77da9fb03de8b44da8eb9d (diff)
usb: emul: Remove maxpacketsize in usb_emul_setup_device()
This parameter is never used. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/usb.h')
-rw-r--r--include/usb.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/usb.h b/include/usb.h
index 0ddc0822b41..1563c9abf3c 100644
--- a/include/usb.h
+++ b/include/usb.h
@@ -976,7 +976,6 @@ int usb_get_max_xfer_size(struct usb_device *dev, size_t *size);
* the USB emulation uclass about the features of the emulator.
*
* @dev: Emulation device
- * @maxpacketsize: Maximum packet size (e.g. PACKET_SIZE_64)
* @strings: List of USB string descriptors, terminated by a NULL
* entry
* @desc_list: List of points or USB descriptors, terminated by NULL.
@@ -984,8 +983,8 @@ int usb_get_max_xfer_size(struct usb_device *dev, size_t *size);
* and others follow on after that.
* @return 0 if OK, -ENOSYS if not implemented, other -ve on error
*/
-int usb_emul_setup_device(struct udevice *dev, int maxpacketsize,
- struct usb_string *strings, void **desc_list);
+int usb_emul_setup_device(struct udevice *dev, struct usb_string *strings,
+ void **desc_list);
/**
* usb_emul_control() - Send a control packet to an emulator