mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
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 <wd@denx.de> Cc: Andre Schwarz <andre.schwarz@matrix-vision.de> Cc: Murray Jensen <Murray.Jensen@csiro.au> Acked-by: Andre Schwarz<andre.schwarz@matrix-vision.de>
This commit is contained in:
@ -72,11 +72,11 @@ typedef struct { /* typedef fpga_desc */
|
||||
|
||||
|
||||
/* root function definitions */
|
||||
extern void fpga_init( void );
|
||||
extern int fpga_add( fpga_type devtype, void *desc );
|
||||
extern int fpga_count( void );
|
||||
extern int fpga_load( int devnum, void *buf, size_t bsize );
|
||||
extern int fpga_dump( int devnum, void *buf, size_t bsize );
|
||||
extern int fpga_info( int devnum );
|
||||
extern void fpga_init(void);
|
||||
extern int fpga_add(fpga_type devtype, void *desc);
|
||||
extern int fpga_count(void);
|
||||
extern int fpga_load(int devnum, const void *buf, size_t bsize);
|
||||
extern int fpga_dump(int devnum, const void *buf, size_t bsize);
|
||||
extern int fpga_info(int devnum);
|
||||
|
||||
#endif /* _FPGA_H_ */
|
||||
|
Reference in New Issue
Block a user