diff options
| author | Samuel Holland <samuel.holland@sifive.com> | 2024-07-30 21:58:56 -0700 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2024-08-24 13:03:01 +0530 |
| commit | c36801841e366fa3ddeb7d7888b8691006c0b552 (patch) | |
| tree | 4af77b9a9684dd6d3a3bd6a88dd54c567a54c46d /include | |
| parent | fa6dfce017eed32cbae2581bc285bafd52929d42 (diff) | |
| download | opensbi-c36801841e366fa3ddeb7d7888b8691006c0b552.tar.gz opensbi-c36801841e366fa3ddeb7d7888b8691006c0b552.tar.bz2 opensbi-c36801841e366fa3ddeb7d7888b8691006c0b552.zip | |
lib: utils/serial: Pass the FDT to fdt_serial_init()
Indicate that this function does not modify the FDT blob, and
deduplicate the call to fdt_get_address().
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sbi_utils/serial/fdt_serial.h b/include/sbi_utils/serial/fdt_serial.h index a0053a16..572475c9 100644 --- a/include/sbi_utils/serial/fdt_serial.h +++ b/include/sbi_utils/serial/fdt_serial.h @@ -19,11 +19,11 @@ struct fdt_serial { int (*init)(const void *fdt, int nodeoff, const struct fdt_match *match); }; -int fdt_serial_init(void); +int fdt_serial_init(const void *fdt); #else -static inline int fdt_serial_init(void) { return 0; } +static inline int fdt_serial_init(const void *fdt) { return 0; } #endif |
