aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-06-22 17:57:50 +0900
committerSimon Glass <sjg@chromium.org>2017-07-11 10:08:20 -0600
commit8c9eaadaaad888e0cd77512553d0d02d476b4dde (patch)
tree4a3e51643a30c927fa5b9011f71dd9420288cd76 /scripts
parentfce136aafe1f51b2dbca1439f3bf31a7e6d32ca9 (diff)
downloadu-boot-8c9eaadaaad888e0cd77512553d0d02d476b4dde.zip
u-boot-8c9eaadaaad888e0cd77512553d0d02d476b4dde.tar.gz
u-boot-8c9eaadaaad888e0cd77512553d0d02d476b4dde.tar.bz2
dm: ofnode: use fdt32_t for DT property value to fix sparse warning
DTB is encoded in big endian. When we retrieve property values, we need to use fdt32_to_cpu (aka be32_to_cpu) for endian conversion. This is a bit error-prone, but sparse is useful to detect endian mismatch. We need to use (fdt32_t *) instead of (u32 *) for a pointer of a property value. Otherwise sparse warns "cast to restricted __be32". Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions