PPC4xx: ALPR: constify FPGA code
authorWolfgang Denk <wd@denx.de>
Mon, 5 Sep 2011 09:39:04 +0000 (11:39 +0200)
committerWolfgang Denk <wd@denx.de>
Mon, 5 Sep 2011 10:28:46 +0000 (12:28 +0200)
The ALPR custom FPGA code was missed by commit e6a857d "fpga:
constify to fix build warning" resulting in such warnings:

fpga.c:226: warning: initialization from incompatible pointer type

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Stefan Roese <sr@denx.de>
Acked-by: Stefan Roese <sr@denx.de>
board/prodrive/alpr/fpga.c

index 93f2449a1be3412f33ba957004dfbb68fa52d3f3..3666a9a4145cc6a28038a9f0988238784799a4ef 100644 (file)
@@ -168,7 +168,7 @@ int fpga_done_fn (int cookie)
 /* writes the complete buffer to the FPGA
    writing the complete buffer in one function is much faster,
    then calling it for every bit */
-int fpga_write_fn (void *buf, size_t len, int flush, int cookie)
+int fpga_write_fn (const void *buf, size_t len, int flush, int cookie)
 {
        size_t bytecount = 0;
        unsigned char *data = (unsigned char *) buf;