diff options
author | Igor Grinberg <grinberg@compulab.co.il> | 2011-11-26 23:06:46 +0000 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2011-11-27 19:46:27 +0100 |
commit | 85be1e21fcec4f9c1010c4f61e050ae9b0df2bbc (patch) | |
tree | 1210752c5d62d69437867c943a4b4c0116e4b1c7 | |
parent | e722d5d076539309e4dc6ff718a2d3ba0341a046 (diff) | |
download | u-boot-imx-85be1e21fcec4f9c1010c4f61e050ae9b0df2bbc.zip u-boot-imx-85be1e21fcec4f9c1010c4f61e050ae9b0df2bbc.tar.gz u-boot-imx-85be1e21fcec4f9c1010c4f61e050ae9b0df2bbc.tar.bz2 |
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 <grinberg@compulab.co.il>
-rw-r--r-- | include/dataflash.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/dataflash.h b/include/dataflash.h index 056e18b..94f86b3 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); |