forked from Mirrors/opensbi
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>
This commit is contained in:

committed by
Anup Patel

parent
b15cc7715a
commit
3f964652d9
@@ -298,7 +298,7 @@ static bool starfive_jh7110_cold_boot_allowed(u32 hartid,
|
||||
return true;
|
||||
}
|
||||
|
||||
static void starfive_jh7110_fw_init(void *fdt, const struct fdt_match *match)
|
||||
static void starfive_jh7110_fw_init(const void *fdt, const struct fdt_match *match)
|
||||
{
|
||||
const fdt32_t *val;
|
||||
int len, coff;
|
||||
|
Reference in New Issue
Block a user