dm: treewide: Rename auto_alloc_size members to be shorter
[platform/kernel/u-boot.git] / drivers / usb / host / usb-sandbox.c
index ff9d5b7..e5442e7 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <log.h>
 #include <usb.h>
 #include <dm/root.h>
 
@@ -99,7 +100,7 @@ static int sandbox_submit_bulk(struct udevice *bus, struct usb_device *udev,
 
 static int sandbox_submit_int(struct udevice *bus, struct usb_device *udev,
                              unsigned long pipe, void *buffer, int length,
-                             int interval)
+                             int interval, bool nonblock)
 {
        struct udevice *emul;
        int ret;
@@ -110,7 +111,8 @@ static int sandbox_submit_int(struct udevice *bus, struct usb_device *udev,
        usbmon_trace(bus, pipe, NULL, emul);
        if (ret)
                return ret;
-       ret = usb_emul_int(emul, udev, pipe, buffer, length, interval);
+       ret = usb_emul_int(emul, udev, pipe, buffer, length, interval,
+                          nonblock);
 
        return ret;
 }
@@ -153,5 +155,5 @@ U_BOOT_DRIVER(usb_sandbox) = {
        .of_match = sandbox_usb_ids,
        .probe = sandbox_usb_probe,
        .ops    = &sandbox_usb_ops,
-       .priv_auto_alloc_size = sizeof(struct sandbox_usb_ctrl),
+       .priv_auto      = sizeof(struct sandbox_usb_ctrl),
 };