sandbox: usb: Allow finding a USB emulator for a device
authorSimon Glass <sjg@chromium.org>
Mon, 9 Nov 2015 06:47:55 +0000 (23:47 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 20 Nov 2015 03:27:51 +0000 (20:27 -0700)
commitaf9c7c11e97ce99a8b8a0de99f91bde1b703377e
tree174b9e5b545fac3c1d50c8dbc91b187a0a3fcd4b
parent80438a6c71b95b2749bdf5c58f7ff26f2907f3d5
sandbox: usb: Allow finding a USB emulator for a device

Each USB device has an emulator. Currently this can only be found by
supplying the 'pipe' value, which contains the device number. Add a way
to find it directly from the emulated device.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/usb/emul/usb-emul-uclass.c
include/usb.h