usb: Refactor USB tree output code for testing
authorSimon Glass <sjg@chromium.org>
Mon, 9 Nov 2015 06:47:51 +0000 (23:47 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 20 Nov 2015 03:27:51 +0000 (20:27 -0700)
commit45bfa47e123cdb0df8e273e3f0c84907c7394f6a
treeebc3274067b42a2c76cc0c055754fd74da36321c
parent9ce8b40206f4f96de6164c2a0c0a725c9323c4b9
usb: Refactor USB tree output code for testing

Allow the 'usb tree' command to be used from test code, so that we can
verify that it works correctly.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/cmd_usb.c
include/usb.h