From 0a7d6908bf0daa95b2a689cb293662c175eeb3e7 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Wed, 22 Aug 2018 09:55:15 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/28267 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner Reviewed-by: Paul Menzel --- src/include/fit.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/fit.h') diff --git a/src/include/fit.h b/src/include/fit.h index eb51b50edb..6e0667f6cf 100644 --- a/src/include/fit.h +++ b/src/include/fit.h @@ -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. -- cgit v1.2.3