summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/chip.c10
-rw-r--r--tests/chip_wp.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/tests/chip.c b/tests/chip.c
index 8f4771a1d..579643c78 100644
--- a/tests/chip.c
+++ b/tests/chip.c
@@ -177,19 +177,19 @@ static const struct flashchip chip_W25Q128_V = {
{
{
.eraseblocks = { {4 * 1024, 4096} },
- .block_erase = spi_block_erase_20,
+ .block_erase = SPI_BLOCK_ERASE_20,
}, {
.eraseblocks = { {32 * 1024, 512} },
- .block_erase = spi_block_erase_52,
+ .block_erase = SPI_BLOCK_ERASE_52,
}, {
.eraseblocks = { {64 * 1024, 256} },
- .block_erase = spi_block_erase_d8,
+ .block_erase = SPI_BLOCK_ERASE_D8,
}, {
.eraseblocks = { {16 * 1024 * 1024, 1} },
- .block_erase = spi_block_erase_60,
+ .block_erase = SPI_BLOCK_ERASE_60,
}, {
.eraseblocks = { {16 * 1024 * 1024, 1} },
- .block_erase = spi_block_erase_c7,
+ .block_erase = SPI_BLOCK_ERASE_C7,
}
},
};
diff --git a/tests/chip_wp.c b/tests/chip_wp.c
index 8f6cb5fdc..c308959bf 100644
--- a/tests/chip_wp.c
+++ b/tests/chip_wp.c
@@ -72,19 +72,19 @@ static const struct flashchip chip_W25Q128_V = {
{
{
.eraseblocks = { {4 * 1024, 4096} },
- .block_erase = spi_block_erase_20,
+ .block_erase = SPI_BLOCK_ERASE_20,
}, {
.eraseblocks = { {32 * 1024, 512} },
- .block_erase = spi_block_erase_52,
+ .block_erase = SPI_BLOCK_ERASE_52,
}, {
.eraseblocks = { {64 * 1024, 256} },
- .block_erase = spi_block_erase_d8,
+ .block_erase = SPI_BLOCK_ERASE_D8,
}, {
.eraseblocks = { {16 * 1024 * 1024, 1} },
- .block_erase = spi_block_erase_60,
+ .block_erase = SPI_BLOCK_ERASE_60,
}, {
.eraseblocks = { {16 * 1024 * 1024, 1} },
- .block_erase = spi_block_erase_c7,
+ .block_erase = SPI_BLOCK_ERASE_C7,
}
},
.reg_bits =