flash: implement functions to check if pages are all zero or one

This commit is contained in:
S.J.R. van Schaik 2017-07-27 16:53:01 +02:00
parent fe1cd870c0
commit 756e5852cb
3 changed files with 16 additions and 5 deletions

View file

@ -24,7 +24,7 @@ static struct flash_ops spi_flash_ops = {
.read = spi_flash_read,
.write = spi_flash_write,
.copy = default_flash_copy,
.is_erased = default_flash_is_erased,
.is_erased = default_flash_is_one,
.erase = spi_flash_erase,
};