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:
Patrick Rudolph
2018-08-22 09:55:15 +02:00
committed by Philipp Deppenwiese
parent 240eaaad28
commit 0a7d6908bf
6 changed files with 75 additions and 64 deletions

View File

@ -27,7 +27,7 @@
struct fit_image_node
{
const char *name;
void *data;
const void *data;
uint32_t size;
int compression;
@ -54,7 +54,7 @@ struct fit_config_node
/*
* Updates the cmdline in the devicetree.
*/
void fit_update_chosen(struct device_tree *tree, char *cmd_line);
void fit_update_chosen(struct device_tree *tree, const char *cmd_line);
/*
* Add a compat string to the list of supported board ids.