mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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>
This commit is contained in:
@ -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 */
|
||||
}
|
||||
|
Reference in New Issue
Block a user