From e6a857da746d5d7d450e59c0f86664c6b279b1c2 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Sat, 30 Jul 2011 13:33:49 +0000 Subject: fpga: constify to fix build warning Fix compiler warning: cmd_fpga.c:318: warning: passing argument 3 of 'fit_image_get_data' from incompatible pointer type Adding the needed 'const' here entails a whole bunch of additonal changes all over the FPGA code. Signed-off-by: Wolfgang Denk Cc: Andre Schwarz Cc: Murray Jensen Acked-by: Andre Schwarz --- common/cmd_fpga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/cmd_fpga.c') diff --git a/common/cmd_fpga.c b/common/cmd_fpga.c index 0ad310f..8946345 100644 --- a/common/cmd_fpga.c +++ b/common/cmd_fpga.c @@ -289,7 +289,7 @@ int do_fpga (cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) { const void *fit_hdr = (const void *)fpga_data; int noffset; - void *fit_data; + const void *fit_data; if (fit_uname == NULL) { puts ("No FIT subimage unit name\n"); -- cgit v1.1