summaryrefslogtreecommitdiff
path: root/include/bootstage.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-22 11:05:34 (GMT)
committerTom Rini <trini@konsulko.com>2017-06-05 18:13:08 (GMT)
commit9d2542d062da9e1e3934f504b4d769998a76c991 (patch)
treea5308fe2cc5f2b096121a2679ac7a1a1da9ad7c2 /include/bootstage.h
parente003310a76211c2a9bb1939db4633830594c35ba (diff)
downloadu-boot-9d2542d062da9e1e3934f504b4d769998a76c991.tar.xz
bootstage: Adjust to use const * where possible
There are a few places that should use const *, such as bootstage_unstash(). Update these to make it clearer when parameters are changed. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/bootstage.h')
-rw-r--r--include/bootstage.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/bootstage.h b/include/bootstage.h
index 848769b..5f4fffa 100644
--- a/include/bootstage.h
+++ b/include/bootstage.h
@@ -333,7 +333,7 @@ int bootstage_stash(void *base, int size);
* there is not space for read the stacked data, or other error if
* something else went wrong
*/
-int bootstage_unstash(void *base, int size);
+int bootstage_unstash(const void *base, int size);
/**
* bootstage_get_size() - Get the size of the bootstage data
@@ -406,7 +406,7 @@ static inline int bootstage_stash(void *base, int size)
return 0; /* Pretend to succeed */
}
-static inline int bootstage_unstash(void *base, int size)
+static inline int bootstage_unstash(const void *base, int size)
{
return 0; /* Pretend to succeed */
}