summaryrefslogtreecommitdiff
path: root/firmware/include
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-07-22 17:47:36 -0700
committerGerrit <chrome-bot@google.com>2012-07-23 16:12:53 -0700
commit029ae65756993979c22035e3706e2b04049ef9fe (patch)
tree19c9f5e7f3a0aab54be8197b235a36785f2d47e5 /firmware/include
parent6e731475236cdaa008fe5c7a6196807e51b08553 (diff)
downloadvboot-029ae65756993979c22035e3706e2b04049ef9fe.tar.gz
VbExEcGetExpectedRW() should take a const **
Since vboot is expected not to modify the contents of the returned pointer. BUG=chrome-os-partner:11148 TEST=if it builds, it worked This change MUST be submitted at the same time as u-boot https://gerrit.chromium.org/gerrit/28146. Change-Id: Ieeee8f456a7fbd9fe6b108a29e208058310b471b Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/28145 Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'firmware/include')
-rw-r--r--firmware/include/vboot_api.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/include/vboot_api.h b/firmware/include/vboot_api.h
index 3f0a7faf..9aa7f0ad 100644
--- a/firmware/include/vboot_api.h
+++ b/firmware/include/vboot_api.h
@@ -638,8 +638,8 @@ VbError_t VbExEcHashRW(const uint8_t **hash, int *hash_size);
/* Get the expected contents of the EC image associated with the main firmware
* specified by the "select" argument. */
-VbError_t VbExEcGetExpectedRW(enum VbSelectFirmware_t select, uint8_t **image,
- int *image_size);
+VbError_t VbExEcGetExpectedRW(enum VbSelectFirmware_t select,
+ const uint8_t **image, int *image_size);
/* Update the EC rewritable image. */
VbError_t VbExEcUpdateRW(const uint8_t *image, int image_size);