]> git.sur5r.net Git - u-boot/commitdiff
usb: emul: Remove maxpacketsize in usb_emul_setup_device()
authorBin Meng <bmeng.cn@gmail.com>
Sun, 1 Oct 2017 13:19:36 +0000 (06:19 -0700)
committerMarek Vasut <marex@denx.de>
Sun, 1 Oct 2017 14:32:50 +0000 (16:32 +0200)
This parameter is never used.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/usb/emul/sandbox_flash.c
drivers/usb/emul/sandbox_hub.c
drivers/usb/emul/sandbox_keyb.c
drivers/usb/emul/usb-emul-uclass.c
include/usb.h

index 98d20c0bc1500c3c120c8105b19f62d723538c46..2f84b360ec6b66320361215acebf1a5d70deec72 100644 (file)
@@ -390,8 +390,7 @@ static int sandbox_flash_bind(struct udevice *dev)
        fs[2].id = STRINGID_SERIAL;
        fs[2].s = dev->name;
 
-       return usb_emul_setup_device(dev, PACKET_SIZE_64, plat->flash_strings,
-                                    flash_desc_list);
+       return usb_emul_setup_device(dev, plat->flash_strings, flash_desc_list);
 }
 
 static int sandbox_flash_probe(struct udevice *dev)
index 1432858fd594cd3b70ba7b4a4b0ddb9334fd3f35..9ed700036e0ac9fae424f0a4b85f179c1cc82683 100644 (file)
@@ -274,8 +274,7 @@ static int sandbox_hub_submit_control_msg(struct udevice *bus,
 
 static int sandbox_hub_bind(struct udevice *dev)
 {
-       return usb_emul_setup_device(dev, PACKET_SIZE_64, hub_strings,
-                                    hub_desc_list);
+       return usb_emul_setup_device(dev, hub_strings, hub_desc_list);
 }
 
 static int sandbox_child_post_bind(struct udevice *dev)
index 27359851df8b231aef5d7c4b0c81c84d4168f017..cff017668f2d45bca6e79bf7f3869776b9deb1d5 100644 (file)
@@ -208,8 +208,7 @@ static int sandbox_keyb_bind(struct udevice *dev)
        fs[2].id = STRINGID_SERIAL;
        fs[2].s = dev->name;
 
-       return usb_emul_setup_device(dev, PACKET_SIZE_8, plat->keyb_strings,
-                                    keyb_desc_list);
+       return usb_emul_setup_device(dev, plat->keyb_strings, keyb_desc_list);
 }
 
 static int sandbox_keyb_probe(struct udevice *dev)
index 6e03c1e0d9e7f1273990fd2967e77a17c2efa862..e4a267bf00ac251bad3527b54de337f489a1cfd3 100644 (file)
@@ -229,8 +229,8 @@ int usb_emul_int(struct udevice *emul, struct usb_device *udev,
        return ops->interrupt(emul, udev, pipe, buffer, length, interval);
 }
 
-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)
 {
        struct usb_dev_platdata *plat = dev_get_parent_platdata(dev);
        struct usb_generic_descriptor **ptr;
index 0ddc0822b41009aafa91ea07a65d0867fffc8145..1563c9abf3c82b83b5279c3634a0af155de0eaa2 100644 (file)
@@ -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