summaryrefslogtreecommitdiff
path: root/board/twinkie/board.c
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2014-10-10 13:31:56 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-10-11 07:29:15 +0000
commit46102d3b4ed4958986b2272237a33513ee32fc92 (patch)
tree7b4efcf75b4b898c65e1c332abc232ce7986661d /board/twinkie/board.c
parent63c41f239223cb343978635c7409ee341eeb08d8 (diff)
downloadchrome-ec-46102d3b4ed4958986b2272237a33513ee32fc92.tar.gz
usb: export firmware version
Remove the meaningless version string in iSerialNumber, which was incorrect since this string should be unique to a device if it exists. Export the firmware version string as the configuration string, so it's traceable to a given firmware build/sources. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=samus BUG=none TEST=make buildall from a workstation, do "sudo lsusb -v" and see the full version string exported as the configuration name. Change-Id: I557df2936421e2926ac0fc0003888370cec3e201 Reviewed-on: https://chromium-review.googlesource.com/222877 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/twinkie/board.c')
-rw-r--r--board/twinkie/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/twinkie/board.c b/board/twinkie/board.c
index 07faadd11b..69fe2735b2 100644
--- a/board/twinkie/board.c
+++ b/board/twinkie/board.c
@@ -73,7 +73,7 @@ const void * const usb_strings[] = {
[USB_STR_DESC] = usb_string_desc,
[USB_STR_VENDOR] = USB_STRING_DESC("Google Inc."),
[USB_STR_PRODUCT] = USB_STRING_DESC("Twinkie"),
- [USB_STR_VERSION] = USB_STRING_DESC("v0.001"),
+ [USB_STR_VERSION] = NULL /* filled at runtime */,
[USB_STR_SNIFFER] = USB_STRING_DESC("USB-PD Sniffer"),
};
BUILD_ASSERT(ARRAY_SIZE(usb_strings) == USB_STR_COUNT);