aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSamuel Holland <samuel.holland@sifive.com>2024-07-30 21:58:48 -0700
committerAnup Patel <anup@brainfault.org>2024-08-24 13:02:36 +0530
commit7df1c8126fd1027af0c9b09ea806e1f50d8a0785 (patch)
tree3cf9b4d21af8542b3ffb2433d02776d4783e1041 /include
parentd561418f22f28b1eaedd5a51c338099c359743cf (diff)
downloadopensbi-7df1c8126fd1027af0c9b09ea806e1f50d8a0785.zip
opensbi-7df1c8126fd1027af0c9b09ea806e1f50d8a0785.tar.gz
opensbi-7df1c8126fd1027af0c9b09ea806e1f50d8a0785.tar.bz2
lib: utils/irqchip: 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/irqchip/fdt_irqchip.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sbi_utils/irqchip/fdt_irqchip.h b/include/sbi_utils/irqchip/fdt_irqchip.h
index 63e9fd9..bc02c0c 100644
--- a/include/sbi_utils/irqchip/fdt_irqchip.h
+++ b/include/sbi_utils/irqchip/fdt_irqchip.h
@@ -16,7 +16,7 @@
struct fdt_irqchip {
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);
};