summary refs log tree commit diff
path: root/usb_util/src
diff options
context:
space:
mode:
authorDaniel Verkamp <dverkamp@chromium.org>2019-05-01 14:51:41 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-05-10 15:26:00 -0700
commitd9990845398e40eb5bdac40610c895dacd9c1ee3 (patch)
treed86fa88a92e046c2393438bd0ce7b945e06defc5 /usb_util/src
parentac83a5996c41c458e2c4bf98d3b3cf1857c92653 (diff)
downloadcrosvm-d9990845398e40eb5bdac40610c895dacd9c1ee3.tar
crosvm-d9990845398e40eb5bdac40610c895dacd9c1ee3.tar.gz
crosvm-d9990845398e40eb5bdac40610c895dacd9c1ee3.tar.bz2
crosvm-d9990845398e40eb5bdac40610c895dacd9c1ee3.tar.lz
crosvm-d9990845398e40eb5bdac40610c895dacd9c1ee3.tar.xz
crosvm-d9990845398e40eb5bdac40610c895dacd9c1ee3.tar.zst
crosvm-d9990845398e40eb5bdac40610c895dacd9c1ee3.zip
usb: factor out common control request handling
The device to host and host to device branches of HostDevice's
handle_control_transfer function are basically identical, differing only
in whether to do a read or write and when to do it.  Split this code out
into its own function, execute_control_transfer, to reduce code
duplication and prepare for future changes.

BUG=chromium:831850
TEST=Test adb in crostini

Change-Id: Ic659f18ca97e2c1c71f67f3543096fe69228969a
Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1593712
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Zach Reizner <zachr@chromium.org>
Diffstat (limited to 'usb_util/src')
0 files changed, 0 insertions, 0 deletions