mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
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>
This commit is contained in:
committed by
Tom Rini
parent
11955590a2
commit
906a9dbbcb
@@ -13,7 +13,7 @@
|
||||
#include <image.h>
|
||||
#include <libfdt.h>
|
||||
|
||||
int fdt_offset(void *fit)
|
||||
static int fdt_offset(const void *fit)
|
||||
{
|
||||
int images, node, fdt_len, fdt_node, fdt_offset;
|
||||
const char *fdt_name;
|
||||
@@ -55,7 +55,7 @@ int fdt_offset(void *fit)
|
||||
return fdt_offset;
|
||||
}
|
||||
|
||||
void *locate_dtb_in_fit(void *fit)
|
||||
void *locate_dtb_in_fit(const void *fit)
|
||||
{
|
||||
struct image_header *header;
|
||||
int size;
|
||||
|
Reference in New Issue
Block a user