diff options
Diffstat (limited to 'common/flash_common.c')
-rw-r--r-- | common/flash_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/flash_common.c b/common/flash_common.c index 9407f3336a..47938804cf 100644 --- a/common/flash_common.c +++ b/common/flash_common.c @@ -44,7 +44,7 @@ int flash_is_erased(uint32_t offset, int size) } #endif -int flash_write(int offset, int size, const char *data) +test_mockable int flash_write(int offset, int size, const char *data) { if (flash_dataptr(offset, size, CONFIG_FLASH_WRITE_SIZE, NULL) < 0) return EC_ERROR_INVAL; /* Invalid range */ @@ -56,7 +56,7 @@ int flash_write(int offset, int size, const char *data) return flash_physical_write(offset, size, data); } -int flash_erase(int offset, int size) +test_mockable int flash_erase(int offset, int size) { if (flash_dataptr(offset, size, CONFIG_FLASH_ERASE_SIZE, NULL) < 0) return EC_ERROR_INVAL; /* Invalid range */ |