From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Date: Mon, 05 Sep 2011 14:24:50 +0400 Subject: [U-Boot] [PATCH] PPC4xx: ALPR: constify FPGA code In-Reply-To: <1315215809-18490-1-git-send-email-wd@denx.de> References: <1315215809-18490-1-git-send-email-wd@denx.de> Message-ID: <4E64A372.8030506@mvista.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello. On 05-09-2011 13:43, Wolfgang Denk wrote: > 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 > Cc: Stefan Roese > --- > board/prodrive/alpr/fpga.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > diff --git a/board/prodrive/alpr/fpga.c b/board/prodrive/alpr/fpga.c > index 93f2449..3666a9a 100644 > --- a/board/prodrive/alpr/fpga.c > +++ b/board/prodrive/alpr/fpga.c > @@ -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) I guess this causes checkpatch.pl to complain due to space before (... WBR, Sergei