From 3c8f98f5fed5c6f03bb185b79191477885748b14 Mon Sep 17 00:00:00 2001 From: Maxime Ripard Date: Thu, 15 Oct 2015 14:34:13 +0200 Subject: fastboot: Move fastboot response functions to fastboot core The functions and a few define to generate a fastboot message to be sent back to the host were so far duplicated among the users. Move them all to a common place. Signed-off-by: Maxime Ripard Reviewed-by: Tom Rini --- include/aboot.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'include/aboot.h') diff --git a/include/aboot.h b/include/aboot.h index 30e4d36df8..18ff07a5dc 100644 --- a/include/aboot.h +++ b/include/aboot.h @@ -9,9 +9,6 @@ #define ROUNDUP(x, y) (((x) + ((y) - 1)) & ~((y) - 1)) -void fastboot_fail(const char *s); -void fastboot_okay(const char *s); - static inline int is_sparse_image(void *buf) { sparse_header_t *s_header = (sparse_header_t *)buf; @@ -23,6 +20,6 @@ static inline int is_sparse_image(void *buf) return 0; } -void write_sparse_image(block_dev_desc_t *dev_desc, - disk_partition_t *info, const char *part_name, - void *data, unsigned sz); +int write_sparse_image(block_dev_desc_t *dev_desc, + disk_partition_t *info, const char *part_name, + void *data, unsigned sz); -- cgit v1.2.1