diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2018-01-29 20:37:04 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-01-30 08:33:54 +0100 |
commit | b5526c403c41ffa70a917df3841cd5e77b23d1f3 (patch) | |
tree | 608cba584e6b0fa4292fbb0bb98c91145581d2f2 /common/bbu.c | |
parent | 83ff71fcee4daabfd74ff31e5612f74c4996ec5c (diff) | |
download | barebox-b5526c403c41ffa70a917df3841cd5e77b23d1f3.tar.gz barebox-b5526c403c41ffa70a917df3841cd5e77b23d1f3.tar.xz |
imd: Make all pointers into image const
The IMD code should be readonly and never modify any pointers. Make
all pointers const so that const pointers can be passed in to IMD.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/bbu.c')
-rw-r--r-- | common/bbu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/bbu.c b/common/bbu.c index 3b372263b1..11e44f4a7d 100644 --- a/common/bbu.c +++ b/common/bbu.c @@ -159,7 +159,7 @@ static int bbu_check_of_compat(struct bbu_data *data) struct device_node *root_node; const char *machine, *str; int ret; - struct imd_header *of_compat; + const struct imd_header *of_compat; if (!IS_ENABLED(CONFIG_OFDEVICE) || !IS_ENABLED(CONFIG_IMD)) return 0; @@ -191,7 +191,7 @@ static int bbu_check_of_compat(struct bbu_data *data) static int bbu_check_metadata(struct bbu_data *data) { - struct imd_header *imd; + const struct imd_header *imd; int ret; char *str; |