From: Wolfgang Denk Date: Mon, 01 Aug 2011 15:21:51 +0200 Subject: [U-Boot] [PATCH] fpga: constify to fix build warning In-Reply-To: <1312068829-8498-1-git-send-email-wd@denx.de> References: <1312068829-8498-1-git-send-email-wd@denx.de> Message-ID: <20110801132151.A4A141673B92@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Wolfgang Denk, In message <1312068829-8498-1-git-send-email-wd@denx.de> you wrote: > 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 > --- > board/hymod/bsp.c | 4 ++-- > board/matrix_vision/mergerbox/fpga.c | 2 +- > board/matrix_vision/mergerbox/fpga.h | 2 +- > board/matrix_vision/mvbc_p/fpga.c | 2 +- > board/matrix_vision/mvbc_p/fpga.h | 2 +- > board/matrix_vision/mvblm7/fpga.c | 2 +- > board/matrix_vision/mvblm7/fpga.h | 2 +- > common/cmd_fpga.c | 2 +- > drivers/fpga/ACEX1K.c | 14 +++++++------- > drivers/fpga/altera.c | 4 ++-- > drivers/fpga/cyclon2.c | 12 ++++++------ > drivers/fpga/fpga.c | 8 ++++---- > drivers/fpga/spartan2.c | 24 ++++++++++++------------ > drivers/fpga/spartan3.c | 24 ++++++++++++------------ > drivers/fpga/virtex2.c | 20 ++++++++++---------- > drivers/fpga/xilinx.c | 4 ++-- > include/ACEX1K.h | 12 ++++++------ > include/altera.h | 8 ++++---- > include/fpga.h | 12 ++++++------ > include/spartan2.h | 6 +++--- > include/spartan3.h | 6 +++--- > include/virtex2.h | 6 +++--- > include/xilinx.h | 6 +++--- > 23 files changed, 92 insertions(+), 92 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things." - Doug Gwyn