summaryrefslogtreecommitdiff
path: root/include/version.h
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2014-08-27 09:09:53 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-08-28 20:12:52 +0000
commitb7f1d5261917c88e734d0e788de74b2bc419c431 (patch)
tree5d238902410b955e3b58e6217392f6013d75fe35 /include/version.h
parent9d0bb00192d460ef0a445040bf245a4840d38fbb (diff)
downloadchrome-ec-b7f1d5261917c88e734d0e788de74b2bc419c431.tar.gz
zinger: samus_pd: change zinger SW ver to report commit count
Change the zinger software version returned by VDO_CMD_READ_INFO to report the commit count portion of the version string to make the software version automatically change. This software version is important for debugging and is printed to PD console every time a zinger is attached. BUG=none BRANCH=none TEST=load onto zinger and samus, plug in zinger and see: Dev:1 SW:2147 RW:0 compare to the version string in zinger binary and we see: zinger_v1.1.2147-... Change-Id: Ieafe89b4b16cee076be17bcbc6774bbd7fc24f8e Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/214428 Reviewed-by: Todd Broch <tbroch@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/version.h')
-rw-r--r--include/version.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/version.h b/include/version.h
index 42d176916f..8853d76561 100644
--- a/include/version.h
+++ b/include/version.h
@@ -23,4 +23,8 @@ extern const struct version_struct version_data;
extern const char build_info[];
extern const char __version_struct_offset[];
+/**
+ * Get the number of commits field from version string.
+ */
+uint32_t ver_get_numcommits(void);
#endif /* __CROS_EC_VERSION_H */