Edward O'Callaghan has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/69047 )
Change subject: chipdrivers: Rename s/erase_sector_stm50/stm50_sector_erase ......................................................................
chipdrivers: Rename s/erase_sector_stm50/stm50_sector_erase
Change-Id: Ia916b5782abf04499ab46a540820acbe4a171068 Signed-off-by: Edward O'Callaghan quasisec@google.com --- M flashrom.c M include/chipdrivers.h M stm50.c 3 files changed, 13 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/47/69047/1
diff --git a/flashrom.c b/flashrom.c index ec4ddbc..0f10ad4 100644 --- a/flashrom.c +++ b/flashrom.c @@ -371,7 +371,7 @@ case ERASE_SECTOR_28SF040: return &erase_sector_28sf040; case ERASE_BLOCK_82802AB: return &erase_block_82802ab; case ERASE_SECTOR_49LFXXXC: return &erase_sector_49lfxxxc; - case STM50_SECTOR_ERASE: return &erase_sector_stm50; // TODO rename to &stm50_sector_erase; + case STM50_SECTOR_ERASE: return &stm50_sector_erase; case EDI_CHIP_BLOCK_ERASE: return &edi_chip_block_erase; case TEST_ERASE_INJECTOR: return g_test_erase_injector; /* default: total function, 0 indicates no erase function set. diff --git a/include/chipdrivers.h b/include/chipdrivers.h index 3b07afe..9d1db76 100644 --- a/include/chipdrivers.h +++ b/include/chipdrivers.h @@ -198,7 +198,7 @@ bool w29ee011_can_override(const char *const chip_name, const char *const override_chip);
/* stm50.c */ -int erase_sector_stm50(struct flashctx *flash, unsigned int block, unsigned int blocksize); +int stm50_sector_erase(struct flashctx *flash, unsigned int block, unsigned int blocksize);
/* en29lv640b.c */ int probe_en29lv640b(struct flashctx *flash); diff --git a/stm50.c b/stm50.c index d495e09..9092a0f 100644 --- a/stm50.c +++ b/stm50.c @@ -47,7 +47,7 @@ * the block erase function instead. FIXME: This duplicates the behavior of the remaining erasers for blocks and * might be fixed when flashrom supports multiple functions per eraser or erasers that do erase parts of the * chip only. */ -int erase_sector_stm50(struct flashctx *flash, unsigned int addr, unsigned int len) +int stm50_sector_erase(struct flashctx *flash, unsigned int addr, unsigned int len) { if (len == 4096) return stm50_erase_sector(flash, addr);