From: Igor Grinberg Date: Sat, 26 Nov 2011 23:06:46 +0000 (+0000) Subject: dataflash: fix parameters order in write_dataflash() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=abdbd67cbcd58878860d83882b92228b9922484b;p=project%2Fbcm63xx%2Fu-boot.git dataflash: fix parameters order in write_dataflash() Fix parameters order in write_dataflash() function extern declaration in the header file. Parameters order, as in function definition, should be: addr_dest, addr_src, size. Signed-off-by: Igor Grinberg --- diff --git a/include/dataflash.h b/include/dataflash.h index 056e18b036..94f86b3a30 100644 --- a/include/dataflash.h +++ b/include/dataflash.h @@ -207,7 +207,8 @@ extern int addr2ram(ulong addr); extern int dataflash_real_protect (int flag, unsigned long start_addr, unsigned long end_addr); extern int addr_dataflash (unsigned long addr); extern int read_dataflash (unsigned long addr, unsigned long size, char *result); -extern int write_dataflash (unsigned long addr, unsigned long dest, unsigned long size); +extern int write_dataflash(unsigned long addr_dest, unsigned long addr_src, + unsigned long size); extern int AT91F_DataflashInit(void); extern void dataflash_print_info (void);