mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-23 17:55:01 +00:00
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>
This commit is contained in:
committed by
chrome-internal-fetch
parent
1137139a2e
commit
aaa325727a
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user