diff options
| author | Samuel Holland <samuel.holland@sifive.com> | 2024-07-30 21:58:53 -0700 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2024-08-24 13:02:51 +0530 |
| commit | 3f964652d9236bcd5a7111bace3fd8bdb5dec7b1 (patch) | |
| tree | 36286bbc5593e3fa4445cbbe6fcf642e4c240ef2 /platform/generic/include | |
| parent | b15cc7715a02b269b7789159401d428c20e23c03 (diff) | |
| download | opensbi-3f964652d9236bcd5a7111bace3fd8bdb5dec7b1.zip opensbi-3f964652d9236bcd5a7111bace3fd8bdb5dec7b1.tar.gz opensbi-3f964652d9236bcd5a7111bace3fd8bdb5dec7b1.tar.bz2 | |
platform: generic: Constify FDT pointers in fw_platform_init()
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 'platform/generic/include')
| -rw-r--r-- | platform/generic/include/platform_override.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/generic/include/platform_override.h b/platform/generic/include/platform_override.h index b0585c2..bd6fdac 100644 --- a/platform/generic/include/platform_override.h +++ b/platform/generic/include/platform_override.h @@ -29,7 +29,7 @@ struct platform_override { int (*extensions_init)(const struct fdt_match *match, struct sbi_hart_features *hfeatures); int (*pmu_init)(const struct fdt_match *match); - void (*fw_init)(void *fdt, const struct fdt_match *match); + void (*fw_init)(const void *fdt, const struct fdt_match *match); int (*vendor_ext_provider)(long funcid, struct sbi_trap_regs *regs, struct sbi_ecall_return *out, |
