aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSamuel Holland <samuel.holland@sifive.com>2024-07-30 21:58:47 -0700
committerAnup Patel <anup@brainfault.org>2024-08-24 13:02:33 +0530
commitd561418f22f28b1eaedd5a51c338099c359743cf (patch)
tree5a6ea657c08cd39281273e664a9dae9ddef04d46 /include
parent039e810437d3fbf96505454cce17c8f90e51996d (diff)
downloadopensbi-d561418f22f28b1eaedd5a51c338099c359743cf.tar.gz
opensbi-d561418f22f28b1eaedd5a51c338099c359743cf.tar.bz2
opensbi-d561418f22f28b1eaedd5a51c338099c359743cf.zip
lib: utils/ipi: Constify FDT pointers in parsing functions
Indicate that none of these functions modify the devicetree by constifying the parameter type. Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Andrew Jones <ajones@ventanamicro.com> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'include')
-rw-r--r--include/sbi_utils/ipi/fdt_ipi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sbi_utils/ipi/fdt_ipi.h b/include/sbi_utils/ipi/fdt_ipi.h
index 1dd9062d..c6245201 100644
--- a/include/sbi_utils/ipi/fdt_ipi.h
+++ b/include/sbi_utils/ipi/fdt_ipi.h
@@ -16,7 +16,7 @@
struct fdt_ipi {
const struct fdt_match *match_table;
- int (*cold_init)(void *fdt, int nodeoff, const struct fdt_match *match);
+ int (*cold_init)(const void *fdt, int nodeoff, const struct fdt_match *match);
int (*warm_init)(void);
void (*exit)(void);
};