flash: Rename write_flash to flash_write

Change-Id: I4b41aac597299c93369d8998b03a7d3e2a128742
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/mboxd_windows.c b/mboxd_windows.c
index e689b47..c7d223e 100644
--- a/mboxd_windows.c
+++ b/mboxd_windows.c
@@ -228,13 +228,13 @@
 	/* Write back over the erased area */
 	if (low_mem.mem) {
 		/* Exceed window at the start */
-		rc = write_flash(context, low_mem.flash_offset, low_mem.mem,
+		rc = flash_write(context, low_mem.flash_offset, low_mem.mem,
 				 low_mem.size);
 		if (rc < 0) {
 			goto out;
 		}
 	}
-	rc = write_flash(context, flash_offset,
+	rc = flash_write(context, flash_offset,
 			 context->current->mem + offset_bytes, count_bytes);
 	if (rc < 0) {
 		goto out;
@@ -245,14 +245,14 @@
 	 */
 	if (high_mem.mem) {
 		/* Exceed window at the end */
-		rc = write_flash(context, high_mem.flash_offset, high_mem.mem,
+		rc = flash_write(context, high_mem.flash_offset, high_mem.mem,
 				 high_mem.size);
 		if (rc < 0) {
 			goto out;
 		}
 	} else {
 		/* Write from the current window - it's atleast that big */
-		rc = write_flash(context, high_mem.flash_offset,
+		rc = flash_write(context, high_mem.flash_offset,
 				 context->current->mem + offset_bytes +
 				 count_bytes, high_mem.size);
 		if (rc < 0) {
@@ -311,7 +311,7 @@
 		}
 
 		/* Write to the erased flash */
-		rc = write_flash(context, flash_offset,
+		rc = flash_write(context, flash_offset,
 				 context->current->mem + offset_bytes,
 				 count_bytes);
 		if (rc < 0) {