aboutsummaryrefslogtreecommitdiffstats
path: root/include/flash.h
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@google.com>2022-05-16 11:10:36 +1000
committerEdward O'Callaghan <quasisec@chromium.org>2022-05-17 02:20:34 +0000
commit9d869c447d660ef99b9db6c94322f7df41eb8e6f (patch)
treee2afdae7e97c17e7d9b0e73601f69e92d78074a8 /include/flash.h
parent086f0c8e4f32ade9c80f2a8b2889ce870467c398 (diff)
downloadflashrom-9d869c447d660ef99b9db6c94322f7df41eb8e6f.tar.gz
flashrom-9d869c447d660ef99b9db6c94322f7df41eb8e6f.tar.bz2
flashrom-9d869c447d660ef99b9db6c94322f7df41eb8e6f.zip
flashrom.c: Make need_erase() helper static local
The need_erase() helper is only used within flashrom.c Change-Id: Ic0946bb109fca2fc18e15eefa11cccea284ded0b Signed-off-by: Edward O'Callaghan <quasisec@google.com> Reviewed-on: https://review.coreboot.org/c/flashrom/+/64369 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Thomas Heijligen <src@posteo.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'include/flash.h')
-rw-r--r--include/flash.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/flash.h b/include/flash.h
index 5170ba72..89d57377 100644
--- a/include/flash.h
+++ b/include/flash.h
@@ -411,7 +411,6 @@ int read_memmapped(struct flashctx *flash, uint8_t *buf, unsigned int start, uns
int erase_flash(struct flashctx *flash);
int probe_flash(struct registered_master *mst, int startchip, struct flashctx *fill_flash, int force);
int verify_range(struct flashctx *flash, const uint8_t *cmpbuf, unsigned int start, unsigned int len);
-int need_erase(const uint8_t *have, const uint8_t *want, unsigned int len, enum write_granularity gran, const uint8_t erased_value);
void emergency_help_message(void);
void print_version(void);
void print_buildinfo(void);