From aaa325727a19366f40c84d45bfdbfd2e4fa92de0 Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Tue, 7 Oct 2014 17:58:05 -0700 Subject: [PATCH] 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 Change-Id: Ide172bfecf608a30489d25026268aedfc421ce4d Reviewed-on: https://chromium-review.googlesource.com/222062 Reviewed-by: Vadim Bendebury Reviewed-by: Randall Spangler --- host/arch/arm/lib/crossystem_arch.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/host/arch/arm/lib/crossystem_arch.c b/host/arch/arm/lib/crossystem_arch.c index 6197e3824c..92b61b4cf5 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; }