aboutsummaryrefslogtreecommitdiff
path: root/include/boot_fit.h
diff options
context:
space:
mode:
authorJean-Jacques Hiblot2017-09-15 12:57:25 +0200
committerTom Rini2017-10-05 21:31:04 -0400
commit906a9dbbcba85e8b02414c960c75103cc4755102 (patch)
tree7ed6863f3bcc59acf9e9b83df92d5c2435e99dbc /include/boot_fit.h
parent11955590a284ecb75892aad5f1174ca1b94a709b (diff)
fit: use 'const' for the input of fdt_offset() and locate_dtb_in_fit()
Those 2 functions don't modify their input, we can mark it const. This prevents compilation warnings when they are provided const input. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/boot_fit.h')
-rw-r--r--include/boot_fit.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/boot_fit.h b/include/boot_fit.h
index b7d2462dd9b..e16ae5bafae 100644
--- a/include/boot_fit.h
+++ b/include/boot_fit.h
@@ -5,5 +5,10 @@
* SPDX-License-Identifier: GPL-2.0+
*/
-int fdt_offset(void *fit);
-void *locate_dtb_in_fit(void *fit);
+/**
+ * locate_dtb_in_fit - Find a DTB matching the board in a FIT image
+ * @fit: pointer to the FIT image
+ *
+ * @return a pointer to a matching DTB blob if found, NULL otherwise
+ */
+void *locate_dtb_in_fit(const void *fit);