Skip to content
Snippets Groups Projects
Commit 98b639fc authored by Bin Meng's avatar Bin Meng Committed by Marek Vasut
Browse files

usb: emul: Remove maxpacketsize in usb_emul_setup_device()


This parameter is never used.

Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent 6e9b109a
No related branches found
No related tags found
No related merge requests found
...@@ -390,8 +390,7 @@ static int sandbox_flash_bind(struct udevice *dev) ...@@ -390,8 +390,7 @@ static int sandbox_flash_bind(struct udevice *dev)
fs[2].id = STRINGID_SERIAL; fs[2].id = STRINGID_SERIAL;
fs[2].s = dev->name; fs[2].s = dev->name;
return usb_emul_setup_device(dev, PACKET_SIZE_64, plat->flash_strings, return usb_emul_setup_device(dev, plat->flash_strings, flash_desc_list);
flash_desc_list);
} }
static int sandbox_flash_probe(struct udevice *dev) static int sandbox_flash_probe(struct udevice *dev)
......
...@@ -274,8 +274,7 @@ static int sandbox_hub_submit_control_msg(struct udevice *bus, ...@@ -274,8 +274,7 @@ static int sandbox_hub_submit_control_msg(struct udevice *bus,
static int sandbox_hub_bind(struct udevice *dev) static int sandbox_hub_bind(struct udevice *dev)
{ {
return usb_emul_setup_device(dev, PACKET_SIZE_64, hub_strings, return usb_emul_setup_device(dev, hub_strings, hub_desc_list);
hub_desc_list);
} }
static int sandbox_child_post_bind(struct udevice *dev) static int sandbox_child_post_bind(struct udevice *dev)
......
...@@ -208,8 +208,7 @@ static int sandbox_keyb_bind(struct udevice *dev) ...@@ -208,8 +208,7 @@ static int sandbox_keyb_bind(struct udevice *dev)
fs[2].id = STRINGID_SERIAL; fs[2].id = STRINGID_SERIAL;
fs[2].s = dev->name; fs[2].s = dev->name;
return usb_emul_setup_device(dev, PACKET_SIZE_8, plat->keyb_strings, return usb_emul_setup_device(dev, plat->keyb_strings, keyb_desc_list);
keyb_desc_list);
} }
static int sandbox_keyb_probe(struct udevice *dev) static int sandbox_keyb_probe(struct udevice *dev)
......
...@@ -229,8 +229,8 @@ int usb_emul_int(struct udevice *emul, struct usb_device *udev, ...@@ -229,8 +229,8 @@ int usb_emul_int(struct udevice *emul, struct usb_device *udev,
return ops->interrupt(emul, udev, pipe, buffer, length, interval); return ops->interrupt(emul, udev, pipe, buffer, length, interval);
} }
int usb_emul_setup_device(struct udevice *dev, int maxpacketsize, int usb_emul_setup_device(struct udevice *dev, struct usb_string *strings,
struct usb_string *strings, void **desc_list) void **desc_list)
{ {
struct usb_dev_platdata *plat = dev_get_parent_platdata(dev); struct usb_dev_platdata *plat = dev_get_parent_platdata(dev);
struct usb_generic_descriptor **ptr; struct usb_generic_descriptor **ptr;
......
...@@ -976,7 +976,6 @@ int usb_get_max_xfer_size(struct usb_device *dev, size_t *size); ...@@ -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. * the USB emulation uclass about the features of the emulator.
* *
* @dev: Emulation device * @dev: Emulation device
* @maxpacketsize: Maximum packet size (e.g. PACKET_SIZE_64)
* @strings: List of USB string descriptors, terminated by a NULL * @strings: List of USB string descriptors, terminated by a NULL
* entry * entry
* @desc_list: List of points or USB descriptors, terminated by NULL. * @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); ...@@ -984,8 +983,8 @@ int usb_get_max_xfer_size(struct usb_device *dev, size_t *size);
* and others follow on after that. * and others follow on after that.
* @return 0 if OK, -ENOSYS if not implemented, other -ve on error * @return 0 if OK, -ENOSYS if not implemented, other -ve on error
*/ */
int usb_emul_setup_device(struct udevice *dev, int maxpacketsize, int usb_emul_setup_device(struct udevice *dev, struct usb_string *strings,
struct usb_string *strings, void **desc_list); void **desc_list);
/** /**
* usb_emul_control() - Send a control packet to an emulator * usb_emul_control() - Send a control packet to an emulator
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment