Commit 98b639fc503e16cffa902d3ab89b29b9b5dcbf57

Authored by Bin Meng
Committed by Marek Vasut
1 parent 6e9b109aa9

usb: emul: Remove maxpacketsize in usb_emul_setup_device()

This parameter is never used.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>

Showing 5 changed files with 7 additions and 11 deletions Side-by-side Diff

drivers/usb/emul/sandbox_flash.c
... ... @@ -390,8 +390,7 @@
390 390 fs[2].id = STRINGID_SERIAL;
391 391 fs[2].s = dev->name;
392 392  
393   - return usb_emul_setup_device(dev, PACKET_SIZE_64, plat->flash_strings,
394   - flash_desc_list);
  393 + return usb_emul_setup_device(dev, plat->flash_strings, flash_desc_list);
395 394 }
396 395  
397 396 static int sandbox_flash_probe(struct udevice *dev)
drivers/usb/emul/sandbox_hub.c
... ... @@ -274,8 +274,7 @@
274 274  
275 275 static int sandbox_hub_bind(struct udevice *dev)
276 276 {
277   - return usb_emul_setup_device(dev, PACKET_SIZE_64, hub_strings,
278   - hub_desc_list);
  277 + return usb_emul_setup_device(dev, hub_strings, hub_desc_list);
279 278 }
280 279  
281 280 static int sandbox_child_post_bind(struct udevice *dev)
drivers/usb/emul/sandbox_keyb.c
... ... @@ -208,8 +208,7 @@
208 208 fs[2].id = STRINGID_SERIAL;
209 209 fs[2].s = dev->name;
210 210  
211   - return usb_emul_setup_device(dev, PACKET_SIZE_8, plat->keyb_strings,
212   - keyb_desc_list);
  211 + return usb_emul_setup_device(dev, plat->keyb_strings, keyb_desc_list);
213 212 }
214 213  
215 214 static int sandbox_keyb_probe(struct udevice *dev)
drivers/usb/emul/usb-emul-uclass.c
... ... @@ -229,8 +229,8 @@
229 229 return ops->interrupt(emul, udev, pipe, buffer, length, interval);
230 230 }
231 231  
232   -int usb_emul_setup_device(struct udevice *dev, int maxpacketsize,
233   - struct usb_string *strings, void **desc_list)
  232 +int usb_emul_setup_device(struct udevice *dev, struct usb_string *strings,
  233 + void **desc_list)
234 234 {
235 235 struct usb_dev_platdata *plat = dev_get_parent_platdata(dev);
236 236 struct usb_generic_descriptor **ptr;
... ... @@ -976,7 +976,6 @@
976 976 * the USB emulation uclass about the features of the emulator.
977 977 *
978 978 * @dev: Emulation device
979   - * @maxpacketsize: Maximum packet size (e.g. PACKET_SIZE_64)
980 979 * @strings: List of USB string descriptors, terminated by a NULL
981 980 * entry
982 981 * @desc_list: List of points or USB descriptors, terminated by NULL.
... ... @@ -984,8 +983,8 @@
984 983 * and others follow on after that.
985 984 * @return 0 if OK, -ENOSYS if not implemented, other -ve on error
986 985 */
987   -int usb_emul_setup_device(struct udevice *dev, int maxpacketsize,
988   - struct usb_string *strings, void **desc_list);
  986 +int usb_emul_setup_device(struct udevice *dev, struct usb_string *strings,
  987 + void **desc_list);
989 988  
990 989 /**
991 990 * usb_emul_control() - Send a control packet to an emulator