summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-06-22 17:58:09 +0900
committerJaehoon Chung <jh80.chung@samsung.com>2017-07-19 19:13:59 +0900
commitaae6f016a7928edc79dff78d1235103fff282a34 (patch)
treedddf2d281fd1a2c1e317b8dbed4603bdbb68b4ea /tools
parent207d8b35330f05265d099aadb8d4c2505a403bea (diff)
mmc: cadence: 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> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions