diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-01-07 20:50:16 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-01-07 20:50:16 +0200 |
| commit | acc26f85f32c68a51e5cc7b613cd0ea0b0630505 (patch) | |
| tree | 90d68a8292360f0796509f1febc7b66b0a53f4aa /common/fdt.c | |
| parent | 8d90fb3e4a5d02df75584016563ef84901967b9f (diff) | |
| download | kmi-acc26f85f32c68a51e5cc7b613cd0ea0b0630505.tar.gz kmi-acc26f85f32c68a51e5cc7b613cd0ea0b0630505.zip | |
Use #if defined(...) when not guard clause
Diffstat (limited to 'common/fdt.c')
| -rw-r--r-- | common/fdt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/fdt.c b/common/fdt.c index f76ad64..7cec3a4 100644 --- a/common/fdt.c +++ b/common/fdt.c @@ -1,6 +1,6 @@ #include <libfdt.h> -struct cell_info get_cellinfo(void *fdt, int offset) +struct cell_info get_cellinfo(const void *fdt, const int offset) { return (struct cell_info){ fdt_size_cells(fdt, offset), @@ -9,7 +9,7 @@ struct cell_info get_cellinfo(void *fdt, int offset) } /* how "reg" is interpreted depends on the parent node */ -struct cell_info get_reginfo(void *fdt, const char *path) +struct cell_info get_reginfo(const void *fdt, const char *path) { const char *i = strrchr(path, '/'); if(!i) |
