summaryrefslogtreecommitdiff
path: root/boot/image-board.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-11-18 14:04:57 -0700
committerTom Rini <trini@konsulko.com>2023-12-13 11:51:24 -0500
commit530cc4797faebbab2284fd3bddf37f975a3f40f7 (patch)
tree0d869e313da5ac4420fbdbb17d01d3fc491417ac /boot/image-board.c
parent7f3b1ee3b2633ce83626cf3aa95ef8d71bca563e (diff)
image: Tidy up genimg_get_kernel_addr_fit()
This function does not modify its first argument, so mark it const. Also move the comments to the header file and expand them to provide more useful information. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'boot/image-board.c')
-rw-r--r--boot/image-board.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/boot/image-board.c b/boot/image-board.c
index d500da1b4b9..062c76badec 100644
--- a/boot/image-board.c
+++ b/boot/image-board.c
@@ -198,22 +198,7 @@ void memmove_wd(void *to, void *from, size_t len, ulong chunksz)
}
}
-/**
- * genimg_get_kernel_addr_fit - get the real kernel address and return 2
- * FIT strings
- * @img_addr: a string might contain real image address
- * @fit_uname_config: double pointer to a char, will hold pointer to a
- * configuration unit name
- * @fit_uname_kernel: double pointer to a char, will hold pointer to a subimage
- * name
- *
- * genimg_get_kernel_addr_fit get the real kernel start address from a string
- * which is normally the first argv of bootm/bootz
- *
- * returns:
- * kernel start address
- */
-ulong genimg_get_kernel_addr_fit(char * const img_addr,
+ulong genimg_get_kernel_addr_fit(const char *const img_addr,
const char **fit_uname_config,
const char **fit_uname_kernel)
{