forked from Mirrors/opensbi
lib: utils/fdt: Constify FDT parsing functions
Distinguish between functions which modify the devicetree and those which only extract information from it. Other than the iterators in fdt_domain.c, this is a mechanical conversion. 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
f229a32828
commit
33ba4e0567
@@ -52,7 +52,7 @@ int fdt_pmu_fixup(void *fdt);
|
||||
*
|
||||
* @return 0 on success and negative error code on failure
|
||||
*/
|
||||
int fdt_pmu_setup(void *fdt);
|
||||
int fdt_pmu_setup(const void *fdt);
|
||||
|
||||
/**
|
||||
* Get the mhpmevent select value read from DT for a given event
|
||||
@@ -70,7 +70,7 @@ extern uint32_t hw_event_count;
|
||||
#else
|
||||
|
||||
static inline void fdt_pmu_fixup(void *fdt) { }
|
||||
static inline int fdt_pmu_setup(void *fdt) { return 0; }
|
||||
static inline int fdt_pmu_setup(const void *fdt) { return 0; }
|
||||
static inline uint64_t fdt_pmu_get_select_value(uint32_t event_idx) { return 0; }
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user