Edward O'Callaghan has uploaded this change for review.

View Change

chipdrivers: Rename s/erase_opaque/opqaue_erase

Change-Id: Icac7a3d2dfa1b00a12a1e151ea7a730cd25110a3
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
---
M flashrom.c
M include/chipdrivers.h
M opaque.c
3 files changed, 13 insertions(+), 3 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/48/69048/1
diff --git a/flashrom.c b/flashrom.c
index 0f10ad4..a05dac0 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -361,7 +361,7 @@
case JEDEC_SECTOR_ERASE: return &erase_sector_jedec; // TODO rename to &jedec_sector_erase;
case JEDEC_BLOCK_ERASE: return &erase_block_jedec; // TODO rename to &jedec_block_erase;
case JEDEC_CHIP_BLOCK_ERASE: return &erase_chip_block_jedec; // TODO rename to &jedec_chip_block_erase;
- case OPAQUE_ERASE: return &erase_opaque; // TODO rename to &opqaue_erase;
+ case OPAQUE_ERASE: return &opqaue_erase;
case SPI_ERASE_AT45CS_SECTOR: return &spi_erase_at45cs_sector;
case SPI_ERASE_AT45DB_BLOCK: return &spi_erase_at45db_block;
case SPI_ERASE_AT45DB_CHIP: return &spi_erase_at45db_chip;
diff --git a/include/chipdrivers.h b/include/chipdrivers.h
index 9d1db76..657c902 100644
--- a/include/chipdrivers.h
+++ b/include/chipdrivers.h
@@ -114,7 +114,7 @@
int probe_opaque(struct flashctx *flash);
int read_opaque(struct flashctx *flash, uint8_t *buf, unsigned int start, unsigned int len);
int write_opaque(struct flashctx *flash, const uint8_t *buf, unsigned int start, unsigned int len);
-int erase_opaque(struct flashctx *flash, unsigned int blockaddr, unsigned int blocklen);
+int opqaue_erase(struct flashctx *flash, unsigned int blockaddr, unsigned int blocklen);

/* at45db.c */
int probe_spi_at45db(struct flashctx *flash);
diff --git a/opaque.c b/opaque.c
index 7704ec7..e794035 100644
--- a/opaque.c
+++ b/opaque.c
@@ -41,7 +41,7 @@
return flash->mst->opaque.write(flash, buf, start, len);
}

-int erase_opaque(struct flashctx *flash, unsigned int blockaddr, unsigned int blocklen)
+int opqaue_erase(struct flashctx *flash, unsigned int blockaddr, unsigned int blocklen)
{
return flash->mst->opaque.erase(flash, blockaddr, blocklen);
}

To view, visit change 69048. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Icac7a3d2dfa1b00a12a1e151ea7a730cd25110a3
Gerrit-Change-Number: 69048
Gerrit-PatchSet: 1
Gerrit-Owner: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-MessageType: newchange