mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
fdt_support: fdt_translate_address() blob const correctness
The next patch will call fdt_translate_address() from somewhere with a "const void *blob" rather than a "void *blob", so fdt_translate_address() must accept a const pointer too. Constify the minimum number of function parameters to achieve this. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Simon Glass <sjg@chromium.org> Squashed in build fix from Stephen: Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
28cd88baa3
commit
11e44fc6bd
2 changed files with 14 additions and 12 deletions
|
@ -180,7 +180,8 @@ static inline void fdt_fixup_mtdparts(void *fdt, void *node_info,
|
|||
#endif
|
||||
|
||||
void fdt_del_node_and_alias(void *blob, const char *alias);
|
||||
u64 fdt_translate_address(void *blob, int node_offset, const __be32 *in_addr);
|
||||
u64 fdt_translate_address(const void *blob, int node_offset,
|
||||
const __be32 *in_addr);
|
||||
int fdt_node_offset_by_compat_reg(void *blob, const char *compat,
|
||||
phys_addr_t compat_off);
|
||||
int fdt_alloc_phandle(void *blob);
|
||||
|
@ -239,7 +240,7 @@ static inline u64 of_read_number(const fdt32_t *cell, int size)
|
|||
return r;
|
||||
}
|
||||
|
||||
void of_bus_default_count_cells(void *blob, int parentoffset,
|
||||
void of_bus_default_count_cells(const void *blob, int parentoffset,
|
||||
int *addrc, int *sizec);
|
||||
int ft_verify_fdt(void *fdt);
|
||||
int arch_fixup_memory_node(void *blob);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue