summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hendricks <dhendrix@chromium.org>2014-10-07 17:58:05 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-10-09 20:43:50 +0000
commitaaa325727a19366f40c84d45bfdbfd2e4fa92de0 (patch)
tree5344e2eee4b37292e38695157493286deaf835e3
parent1137139a2e0ea24a5fb7df3b621d4c0ec59daf81 (diff)
downloadvboot-aaa325727a19366f40c84d45bfdbfd2e4fa92de0.tar.gz
crossystem: rename Vb*NvStorage_mkbp to Vb*NvStorage_mosys
This is just a cosmetic tweak to make it a bit clearer that mosys is the underlying interface for these particular vbnv read/write functions. BUG=none BRANCH=none TEST=it still compiles Signed-off-by: David Hendricks <dhendrix@chromium.org> Change-Id: Ide172bfecf608a30489d25026268aedfc421ce4d Reviewed-on: https://chromium-review.googlesource.com/222062 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--host/arch/arm/lib/crossystem_arch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/host/arch/arm/lib/crossystem_arch.c b/host/arch/arm/lib/crossystem_arch.c
index 6197e382..92b61b4c 100644
--- a/host/arch/arm/lib/crossystem_arch.c
+++ b/host/arch/arm/lib/crossystem_arch.c
@@ -338,7 +338,7 @@ static int ExecuteMosys(char * const argv[], char *buf, size_t bufsize) {
return 0;
}
-static int VbReadNvStorage_mkbp(VbNvContext* vnc) {
+static int VbReadNvStorage_mosys(VbNvContext* vnc) {
char hexstring[VBNV_BLOCK_SIZE * 2 + 32]; /* Reserve extra 32 bytes */
char * const argv[] = {
MOSYS_PATH, "nvram", "vboot", "read", NULL
@@ -357,7 +357,7 @@ static int VbReadNvStorage_mkbp(VbNvContext* vnc) {
return 0;
}
-static int VbWriteNvStorage_mkbp(VbNvContext* vnc) {
+static int VbWriteNvStorage_mosys(VbNvContext* vnc) {
char hexstring[VBNV_BLOCK_SIZE * 2 + 1];
char * const argv[] = {
MOSYS_PATH, "nvram", "vboot", "write", hexstring, NULL
@@ -477,7 +477,7 @@ int VbReadNvStorage(VbNvContext* vnc) {
if (!strcmp(media, "disk"))
return VbReadNvStorage_disk(vnc);
if (!strcmp(media, "mkbp") || !strcmp(media, "flash"))
- return VbReadNvStorage_mkbp(vnc);
+ return VbReadNvStorage_mosys(vnc);
return -1;
}
@@ -490,7 +490,7 @@ int VbWriteNvStorage(VbNvContext* vnc) {
if (!strcmp(media, "disk"))
return VbWriteNvStorage_disk(vnc);
if (!strcmp(media, "mkbp") || !strcmp(media, "flash"))
- return VbWriteNvStorage_mkbp(vnc);
+ return VbWriteNvStorage_mosys(vnc);
return -1;
}