diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2018-08-08 16:58:04 +0930 |
---|---|---|
committer | Andrew Jeffery <andrew@aj.id.au> | 2018-09-05 17:44:24 +0930 |
commit | 4f5d29cff0765367f83a8c63bc9980eec03d18ea (patch) | |
tree | 075987c09bdd82008de4d020607c012a8fa09bc1 /flash.c | |
parent | f953f798e2bb5b559eebccf8728117860679af67 (diff) | |
download | phosphor-mboxbridge-4f5d29cff0765367f83a8c63bc9980eec03d18ea.tar.gz phosphor-mboxbridge-4f5d29cff0765367f83a8c63bc9980eec03d18ea.zip |
flash: Rename erase_flash to flash_erase
Change-Id: I417319aadb2fdbfa2d688bb26b5515d2f9265994
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Diffstat (limited to 'flash.c')
-rw-r--r-- | flash.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -149,14 +149,14 @@ int flash_set_bytemap(struct mbox_context *context, uint32_t offset, } /* - * erase_flash() - Erase the flash + * flash_erase() - Erase the flash * @context: The mbox context pointer * @offset: The flash offset to erase (bytes) * @size: The number of bytes to erase * * Return: 0 on success otherwise negative error code */ -int erase_flash(struct mbox_context *context, uint32_t offset, uint32_t count) +int flash_erase(struct mbox_context *context, uint32_t offset, uint32_t count) { const uint32_t erase_size = 1 << context->erase_size_shift; struct erase_info_user erase_info = { 0 }; |