lib: utils/fdt: Use byteorder conversion functions in libfdt_env.h
authorRahul Pathak <rpathak@ventanamicro.com>
Thu, 2 Feb 2023 04:44:26 +0000 (10:14 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 8 Feb 2023 12:47:42 +0000 (18:17 +0530)
commit680bea02bf47e04594ed8810bfee7e9088cd1ca7
tree6cadeef22c2f3e48c851e9ca376ffa1529db7d3a
parent09b34d8cca513dbd4d52ffd6d3d5b6dedeea516b
lib: utils/fdt: Use byteorder conversion functions in libfdt_env.h

FDT follows big-endian and CPU can be little or big
endian as per the implementation.
libfdt_env.h defines function for conversion between
fdt and cpu byteorder according to the endianness.

Currently, libfdt_env.h defines custom byte swapping
macros and then undefines them. Instead, use the generic
endianness conversion functions

Signed-off-by: Rahul Pathak <rpathak@ventanamicro.com>
Reviewed-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/utils/libfdt/libfdt_env.h