diff options
author | Edward O'Callaghan <quasisec@google.com> | 2023-02-26 16:56:03 +1100 |
---|---|---|
committer | Thomas Heijligen <src@posteo.de> | 2023-02-27 10:21:12 +0000 |
commit | 2c03317a4bd69278a48498e99869d1ac2bd531f0 (patch) | |
tree | b6ec73a17c522a284b7825de9a3b460ada33bb7b | |
parent | 4ea3f6cbf84e7e876ad16430c317a713039fc0f2 (diff) | |
download | flashrom-2c03317a4bd69278a48498e99869d1ac2bd531f0.tar.gz flashrom-2c03317a4bd69278a48498e99869d1ac2bd531f0.tar.bz2 flashrom-2c03317a4bd69278a48498e99869d1ac2bd531f0.zip |
jedec.c: Rename func to jedec_write_page()
Change-Id: I1be83d5974e305bddceaa34b64e982b774ade0d2
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/73282
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Thomas Heijligen <src@posteo.de>
-rw-r--r-- | jedec.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -396,7 +396,7 @@ int write_jedec_1(struct flashctx *flash, const uint8_t *src, unsigned int start return failed; } -static int write_page_write_jedec_common(struct flashctx *flash, const uint8_t *src, +static int jedec_write_page(struct flashctx *flash, const uint8_t *src, unsigned int start, unsigned int page_size) { int tries = 0, failed; @@ -471,7 +471,7 @@ int write_jedec(struct flashctx *flash, const uint8_t *buf, unsigned int start, /* Length of bytes in the range in this page. */ lenhere = min(start + len, (i + 1) * page_size) - starthere; - if (write_page_write_jedec_common(flash, buf + starthere - start, starthere, lenhere)) + if (jedec_write_page(flash, buf + starthere - start, starthere, lenhere)) return 1; update_progress(flash, FLASHROM_PROGRESS_WRITE, i + 1, nwrites + 1); } |