diff options
| author | Samuel Holland <samuel.holland@sifive.com> | 2024-07-30 21:58:51 -0700 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2024-08-24 13:02:46 +0530 |
| commit | bd76eb49502c25d3553da4aaeff846e8762a612d (patch) | |
| tree | c31b6d7b26bb6ec480d63138903545eb0b3bfac3 /include | |
| parent | 57a047930219f0599a0aa27a72de681efa2856aa (diff) | |
| download | opensbi-bd76eb49502c25d3553da4aaeff846e8762a612d.zip opensbi-bd76eb49502c25d3553da4aaeff846e8762a612d.tar.gz opensbi-bd76eb49502c25d3553da4aaeff846e8762a612d.tar.bz2 | |
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 <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/serial/fdt_serial.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sbi_utils/serial/fdt_serial.h b/include/sbi_utils/serial/fdt_serial.h index daa2e4f..a0053a1 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); |
