spi25: Normalize parameters of spi_nbyte_read()

Most other reading functions have the destination buffer
as second parameter.

Change-Id: Id3f91f3d23132b0706b3b33bbf156356c9bf5ebc
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/74864
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
diff --git a/at45db.c b/at45db.c
index 985d3ca..58c6d10 100644
--- a/at45db.c
+++ b/at45db.c
@@ -245,7 +245,7 @@
 	const unsigned int max_chunk = (max_data_read > 0) ? max_data_read : page_size;
 	while (len > 0) {
 		unsigned int chunk = min(max_chunk, len);
-		int ret = spi_nbyte_read(flash, at45db_convert_addr(addr, page_size), buf, chunk);
+		int ret = spi_nbyte_read(flash, buf, at45db_convert_addr(addr, page_size), chunk);
 		if (ret) {
 			msg_cerr("%s: error sending read command!\n", __func__);
 			return ret;