aboutsummaryrefslogtreecommitdiff
path: root/include/fastboot.h
diff options
context:
space:
mode:
authorSimon Glass2023-12-14 21:19:04 -0700
committerTom Rini2024-04-10 17:04:25 -0600
commit637425bab338c1aa7b83f68068dbf5ad398d53af (patch)
tree492711f11ef748ec8abb31937ea72c932cbd7dc9 /include/fastboot.h
parent6d47fd39fc53c4baaeed8b9b0d3ad6c0bf07f80f (diff)
fastboot: Change fastboot_buf_addr to an address
Given the name of this variable, it should be an address, not a pointer. Update this, to make it easier to use with sandbox. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Dmitrii Merkurev <dimorinny@google.com> Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Tested-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> # on vim3
Diffstat (limited to 'include/fastboot.h')
-rw-r--r--include/fastboot.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/fastboot.h b/include/fastboot.h
index 296451f89d4..744ab61cc18 100644
--- a/include/fastboot.h
+++ b/include/fastboot.h
@@ -103,13 +103,13 @@ int fastboot_set_reboot_flag(enum fastboot_reboot_reason reason);
*/
void fastboot_set_progress_callback(void (*progress)(const char *msg));
-/*
+/**
* fastboot_init() - initialise new fastboot protocol session
*
- * @buf_addr: Pointer to download buffer, or NULL for default
+ * @buf_addr: Address of download buffer, or 0 for default
* @buf_size: Size of download buffer, or zero for default
*/
-void fastboot_init(void *buf_addr, u32 buf_size);
+void fastboot_init(ulong buf_addr, u32 buf_size);
/**
* fastboot_boot() - Execute fastboot boot command