diff options
author | Edward O'Callaghan <quasisec@google.com> | 2022-11-02 12:15:38 +1100 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2022-11-11 07:40:02 +0000 |
commit | 3c44e12a287ce9a91cf97c3303bf4222f63d25c7 (patch) | |
tree | 5478f15fc0090fb5785023e4a6e9c6209bd48c11 /at45db.c | |
parent | 2f0e49c2abc0f8ce46eae9675db38eece066cb5e (diff) | |
download | flashrom-3c44e12a287ce9a91cf97c3303bf4222f63d25c7.tar.gz flashrom-3c44e12a287ce9a91cf97c3303bf4222f63d25c7.tar.bz2 flashrom-3c44e12a287ce9a91cf97c3303bf4222f63d25c7.zip |
tree/: Convert flashchips db to use indirection for erase_block
This paves the way to allow for the conversion of flashchip erase_block
func ptr to enumerate values. This change should be a NOP.
TEST=`diff -u <(objdump -D flashchips.o_bk) <(objdump -D flashchips.o)`.
Change-Id: I122295ec9add0fe0efd27273c9725e5d64f6dbe2
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/69131
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'at45db.c')
-rw-r--r-- | at45db.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -80,7 +80,7 @@ static unsigned int at45db_get_sector_count(struct flashctx *flash) unsigned int i, j; unsigned int cnt = 0; for (i = 0; i < NUM_ERASEFUNCTIONS; i++) { - if (flash->chip->block_erasers[i].block_erase == &spi_erase_at45db_sector) { + if (flash->chip->block_erasers[i].block_erase == SPI_ERASE_AT45DB_SECTOR) { for (j = 0; j < NUM_ERASEREGIONS; j++) { cnt += flash->chip->block_erasers[i].eraseblocks[j].count; } |