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 --- board/matrix_vision/mvblm7/fpga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/matrix_vision/mvblm7/fpga.c') diff --git a/board/matrix_vision/mvblm7/fpga.c b/board/matrix_vision/mvblm7/fpga.c index 7b03d6f50..dc5a73874 100644 --- a/board/matrix_vision/mvblm7/fpga.c +++ b/board/matrix_vision/mvblm7/fpga.c @@ -172,7 +172,7 @@ static inline int _write_fpga(u8 val, int dump) return 0; } -int fpga_wr_fn(void *buf, size_t len, int flush, int cookie) +int fpga_wr_fn(const void *buf, size_t len, int flush, int cookie) { unsigned char *data = (unsigned char *) buf; int i; -- cgit v1.2.3-70-g09d2