mdebug

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 28082009294087995b456cecdb42f4857d059d55
parent 6fede366f7978c6e4901399a22b3f15926cc88a7
Author: Brian Swetland <swetland@frotz.net>
Date:   Sat, 13 Jun 2015 18:02:57 -0700

flash-agent: adjust argument names for clarity

Diffstat:
Minclude/agent/flash.h | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/agent/flash.h b/include/agent/flash.h @@ -39,14 +39,14 @@ typedef struct flash_agent { u32 reserved3; int (*setup)(struct flash_agent *agent); - int (*erase)(void *flash, u32 size); - int (*write)(void *flash, void *data, u32 size); + int (*erase)(u32 flash_addr, u32 length); + int (*write)(u32 flash_addr, const void *data, u32 length); int (*ioctl)(u32 op, void *ptr, u32 arg0, u32 arg1); } flash_agent; int flash_agent_setup(flash_agent *agent); -int flash_agent_erase(void *flash, u32 size); -int flash_agent_write(void *flash, void *data, u32 size); +int flash_agent_erase(u32 flash_addr, u32 length); +int flash_agent_write(u32 flash_addr, const void *data, u32 length); int flash_agent_ioctl(u32 op, void *ptr, u32 arg0, u32 arg1); #define ERR_NONE 0