aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/common/mrc_cache.h
diff options
context:
space:
mode:
authorAlexandru Gagniuc <alexandrux.gagniuc@intel.com>2016-03-04 14:38:19 -0800
committerMartin Roth <martinroth@google.com>2016-05-04 20:07:26 +0200
commit1116fa86e3f4f1cf50773ba0959d9d4f7a5ebb92 (patch)
tree77cc030c475e3630263b418a0f373baf30b37d3f /src/soc/intel/common/mrc_cache.h
parent9c9bde3aa35922cf680c91f9260dd7905cc8cb6b (diff)
soc/intel/common/mrc_cache: Honor MRC data as a constant pointer
The MRC cache API has absolutely no reason to modify the data it is asked to stash. Reflect that by taking all "data" parameters as const void *. Change-Id: I7a14ffd7d5726aa9aa5db81df82c06e7f87b9d9f Signed-off-by: Alexandru Gagniuc <alexandrux.gagniuc@intel.com> Reviewed-on: https://review.coreboot.org/14250 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Leroy P Leahy <leroy.p.leahy@intel.com>
Diffstat (limited to 'src/soc/intel/common/mrc_cache.h')
-rw-r--r--src/soc/intel/common/mrc_cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/common/mrc_cache.h b/src/soc/intel/common/mrc_cache.h
index 25d9316aec..9b14c1efd8 100644
--- a/src/soc/intel/common/mrc_cache.h
+++ b/src/soc/intel/common/mrc_cache.h
@@ -34,8 +34,8 @@ int mrc_cache_get_current_with_version(const struct mrc_saved_data **cache,
uint32_t version);
/* Stash the resulting MRC data to be saved in non-volatile storage later. */
-int mrc_cache_stash_data(void *data, size_t size);
-int mrc_cache_stash_data_with_version(void *data, size_t size,
+int mrc_cache_stash_data(const void *data, size_t size);
+int mrc_cache_stash_data_with_version(const void *data, size_t size,
uint32_t version);
#endif /* _COMMON_MRC_CACHE_H_ */