summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-02-24 17:33:12 +0000
committerSimon Glass <sjg@chromium.org>2013-02-28 19:09:21 -0800
commitbda32ffcf712806c7880ded25a012fbeede35e80 (patch)
tree3cdcc1b71162801f25767fe28d3deed3463c9b83 /include
parent6b3ff98da41a084658877282057adeb59ff6e9f2 (diff)
downloadu-boot-imx-bda32ffcf712806c7880ded25a012fbeede35e80.zip
u-boot-imx-bda32ffcf712806c7880ded25a012fbeede35e80.tar.gz
u-boot-imx-bda32ffcf712806c7880ded25a012fbeede35e80.tar.bz2
Update print_buffer() to use const
The buffer cannot be changed by this function, so change the buffer pointer to a const. This allows callers with const pointer to use the function without a cast. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index 4ad17ea..170f439 100644
--- a/include/common.h
+++ b/include/common.h
@@ -270,7 +270,8 @@ int cpu_init(void);
phys_size_t initdram (int);
int display_options (void);
void print_size(unsigned long long, const char *);
-int print_buffer (ulong addr, void* data, uint width, uint count, uint linelen);
+int print_buffer(ulong addr, const void *data, uint width, uint count,
+ uint linelen);
/* common/main.c */
void main_loop (void);