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>
这个提交包含在:
Samuel Holland
2024-08-24 13:02:51 +05:30
提交者 Anup Patel
父节点 b15cc7715a
当前提交 3f964652d9
修改 3 个文件,包含 5 行新增5 行删除
+1 -1
查看文件
@@ -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,