device_tree/fit: Constify data structures
* Add const quailifier to arguments and elements. * Add casts where necessary in cn81xx/soc. Tested on Cavium CN81xx EVB SFF. Change-Id: Id27966427fb97457fe883be32685d1397fb0781f Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/28267 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
committed by
Philipp Deppenwiese
parent
240eaaad28
commit
0a7d6908bf
@ -119,7 +119,7 @@ static void add_cb_fdt_data(struct device_tree *tree)
|
||||
struct device_tree_node *coreboot_node = dt_find_node(firmware_node,
|
||||
coreboot_path, &addr_cells, &size_cells, 1);
|
||||
|
||||
dt_add_string_prop(coreboot_node, "compatible", strdup("coreboot"));
|
||||
dt_add_string_prop(coreboot_node, "compatible", "coreboot");
|
||||
|
||||
/* Fetch CB tables from cbmem */
|
||||
void *cbtable = cbmem_find(CBMEM_ID_CBTABLE);
|
||||
|
Reference in New Issue
Block a user