[U-Boot] [PATCH] dataflash: fix parameters order in write_dataflash()

Igor Grinberg grinberg at compulab.co.il
Sat Nov 5 22:12:43 CET 2011


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 <grinberg at compulab.co.il>
---
 include/dataflash.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/dataflash.h b/include/dataflash.h
index 96ac097..094babb 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 void dataflash_print_info (void);
 extern void dataflash_perror (int err);
 extern void AT91F_DataflashSetEnv (void);
-- 
1.7.3.4



More information about the U-Boot mailing list