mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
fastboot: Refactor fastboot_okay/fail to take response
Add the response string as a parameter to fastboot_okay/fail, instead of modifying a global, to match the contract expected by the AOSP U-Boot code. Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
312a10f16b
commit
c4ded03ef6
9 changed files with 105 additions and 97 deletions
|
@ -23,7 +23,7 @@ struct sparse_storage {
|
|||
lbaint_t blk,
|
||||
lbaint_t blkcnt);
|
||||
|
||||
void (*mssg)(const char *str);
|
||||
void (*mssg)(const char *str, char *response);
|
||||
};
|
||||
|
||||
static inline int is_sparse_image(void *buf)
|
||||
|
@ -38,4 +38,4 @@ static inline int is_sparse_image(void *buf)
|
|||
}
|
||||
|
||||
int write_sparse_image(struct sparse_storage *info, const char *part_name,
|
||||
void *data);
|
||||
void *data, char *response);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue