From bd76eb49502c25d3553da4aaeff846e8762a612d Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Tue, 30 Jul 2024 21:58:51 -0700 Subject: lib: utils/serial: 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/serial/fdt_serial.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/sbi_utils/serial/fdt_serial.h b/include/sbi_utils/serial/fdt_serial.h index daa2e4f5..a0053a16 100644 --- a/include/sbi_utils/serial/fdt_serial.h +++ b/include/sbi_utils/serial/fdt_serial.h @@ -16,7 +16,7 @@ struct fdt_serial { const struct fdt_match *match_table; - int (*init)(void *fdt, int nodeoff, const struct fdt_match *match); + int (*init)(const void *fdt, int nodeoff, const struct fdt_match *match); }; int fdt_serial_init(void); -- cgit v1.2.3