From 7df1c8126fd1027af0c9b09ea806e1f50d8a0785 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Tue, 30 Jul 2024 21:58:48 -0700 Subject: 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 Reviewed-by: Andrew Jones Reviewed-by: Anup Patel --- include/sbi_utils/irqchip/fdt_irqchip.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/sbi_utils/irqchip/fdt_irqchip.h b/include/sbi_utils/irqchip/fdt_irqchip.h index 63e9fd9e..bc02c0c8 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); }; -- cgit v1.2.3