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 <guoren@kernel.org>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
Samuel Holland
2022-05-29 13:32:11 -05:00
committed by Anup Patel
parent f067bb84cf
commit fab0379bb6
4 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@
struct fdt_match {
const char *compatible;
void *data;
const void *data;
};
#define FDT_MAX_PHANDLE_ARGS 16