summaryrefslogtreecommitdiff
path: root/util/iteflash.c
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2019-05-07 15:43:39 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-05-12 19:27:40 -0700
commitd68548eebbe93a6c3009cf20ddf0da7b27fe2012 (patch)
tree9a6effed3c59ea43462322fa705f95b990b6480a /util/iteflash.c
parente02b08ceca36300a602c50b2b3cc81f3a5385978 (diff)
downloadchrome-ec-d68548eebbe93a6c3009cf20ddf0da7b27fe2012.tar.gz
usb_if: use the device with the matching serial number
There might be multiple devices with the same VID:PID connected to the host. Use the serial number to find the correct device if it is given. BUG=none BRANCH=none TEST=none Change-Id: I96f31e8e7ceb0dd2c3c643771b38752da88a2a9e Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1600500 Reviewed-by: Matthew Blecker <matthewb@chromium.org>
Diffstat (limited to 'util/iteflash.c')
-rw-r--r--util/iteflash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/iteflash.c b/util/iteflash.c
index 480756e71e..f0d110f19e 100644
--- a/util/iteflash.c
+++ b/util/iteflash.c
@@ -809,7 +809,7 @@ static int connect_to_ccd_i2c_bridge(struct common_hnd *chnd)
{
int rv;
- rv = usb_findit(chnd->conf.usb_vid, chnd->conf.usb_pid,
+ rv = usb_findit(NULL, chnd->conf.usb_vid, chnd->conf.usb_pid,
CR50_I2C_SUBCLASS, CR50_I2C_PROTOCOL, &chnd->uep);
if (rv) {