diff options
author | Wolfgang Denk <wd@denx.de> | 2011-08-05 02:26:31 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-09-05 11:41:42 +0200 |
commit | fb2d6efbf298db3660a2130074b8b20a0ff26efd (patch) | |
tree | 65842ed84676e493176e22e0e4017d2059181bc7 /include | |
parent | f0e494988f988f29a47cb25b548c9acbbfe2fbc1 (diff) | |
download | u-boot-imx-fb2d6efbf298db3660a2130074b8b20a0ff26efd.zip u-boot-imx-fb2d6efbf298db3660a2130074b8b20a0ff26efd.tar.gz u-boot-imx-fb2d6efbf298db3660a2130074b8b20a0ff26efd.tar.bz2 |
FPGA: constify Lattice FPGA code
The Lattice code was missed by commit e6a857d "fpga: constify to fix
build warning" resulting in such warnings:
fpga.c: In function 'fpga_load':
fpga.c:238: warning: passing argument 2 of 'lattice_load' discards qualifiers from pointer target type
fpga.c: In function 'fpga_dump':
fpga.c:278: warning: passing argument 2 of 'lattice_dump' discards qualifiers from pointer target type
Signed-off-by: Wolfgang Denk <wd@denx.de>
cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'include')
-rwxr-xr-x | include/lattice.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/lattice.h b/include/lattice.h index e965663..6a2cf93 100755 --- a/include/lattice.h +++ b/include/lattice.h @@ -302,8 +302,8 @@ void sclock(void); void ispVMDelay(unsigned short int a_usMicroSecondDelay); void calibration(void); -int lattice_load(Lattice_desc *desc, void *buf, size_t bsize); -int lattice_dump(Lattice_desc *desc, void *buf, size_t bsize); +int lattice_load(Lattice_desc *desc, const void *buf, size_t bsize); +int lattice_dump(Lattice_desc *desc, const void *buf, size_t bsize); int lattice_info(Lattice_desc *desc); void ispVMStart(void); |