summaryrefslogtreecommitdiff
path: root/include/image-sparse.h
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2018-05-29 15:30:40 +0000
committerMarek Vasut <marex@denx.de>2018-05-30 11:59:21 +0200
commitc4ded03ef608be37db105200010d2f3f88195bd6 (patch)
treeda52aed38bf366e0809899f537429b461b39fb8b /include/image-sparse.h
parent312a10f16bf3e8b68066fa359d4dd6a887b5fd55 (diff)
downloadu-boot-c4ded03ef608be37db105200010d2f3f88195bd6.tar.gz
u-boot-c4ded03ef608be37db105200010d2f3f88195bd6.tar.bz2
u-boot-c4ded03ef608be37db105200010d2f3f88195bd6.zip
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>
Diffstat (limited to 'include/image-sparse.h')
-rw-r--r--include/image-sparse.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/image-sparse.h b/include/image-sparse.h
index f39dc16617..234c237b84 100644
--- a/include/image-sparse.h
+++ b/include/image-sparse.h
@@ -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);