diff options
| author | Samuel Holland <[email protected]> | 2022-05-29 13:32:11 -0500 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2022-05-30 10:32:35 +0530 |
| commit | fab0379bb60d6e177018b53f07718b69ba34948d (patch) | |
| tree | 780d1bdbb8ea444a227e7a3b9c1972014b92404b /include/sbi_utils | |
| parent | f067bb84cf2dd6493ff3fa49294d3ec80481ad75 (diff) | |
lib: utils/fdt: Require match data to be const
Match data stores hardware attributes which do not change at runtime, so
it does not need to be mutable. Make it const.
Reviewed-by: Guo Ren <[email protected]>
Reviewed-by: Xiang W <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Signed-off-by: Samuel Holland <[email protected]>
Diffstat (limited to 'include/sbi_utils')
| -rw-r--r-- | include/sbi_utils/fdt/fdt_helper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sbi_utils/fdt/fdt_helper.h b/include/sbi_utils/fdt/fdt_helper.h index 74ea2340..c60af35b 100644 --- a/include/sbi_utils/fdt/fdt_helper.h +++ b/include/sbi_utils/fdt/fdt_helper.h @@ -15,7 +15,7 @@ struct fdt_match { const char *compatible; - void *data; + const void *data; }; #define FDT_MAX_PHANDLE_ARGS 16 |
